3
3
; Select audio/midi flags here according to platform
4
; Audio out Audio in No messages
5
-odac -iadc -d ;;;RT audio I/O
5
;-iadc ;;;uncomment -iadc if RT audio input is needed too
6
6
; For Non-realtime ouput leave only the line below:
7
7
; -o cross2.wav -W ;;; for file output any platform
11
; Initialize the global variables.
10
; after example from Kevin Conder
17
; Instrument #1 - Play an audio file.
19
; Use the "beats.wav" audio file.
20
aout soundin "beats.wav"
16
instr 1 ;play audio file
18
aout soundin "fox.wav"
24
; Instrument #2 - Cross-synthesize!
26
; Use the "ahh" sound stored in Table #1.
27
ain1 loscil 30000, 1, 1, 1
28
; Use the "beats.wav" audio file.
29
ain2 soundin "beats.wav"
22
instr 2 ;cross-synthesize
25
ifn = p5 ; Use the "ahh.aiff" sound and "eee.aiff"
26
ain1 oscil 0.6, p4, ifn
27
ain2 soundin "fox.wav" ; Use the "fox.wav" as modulator
36
aout cross2 ain1, ain2, isize, ioverlap, iwin, kbias
34
aout cross2 ain1, ain2, isize, ioverlap, iwin, kbias
45
; Table #1: An audio file.
46
41
f 1 0 128 1 "ahh.aiff" 0 4 0
47
; Table #2: A windowing function.
50
; Play Instrument #1 for 2 seconds.
52
; Play Instrument #2 for 2 seconds.
42
f 2 0 128 1 "eee.aiff" 0 4 0
44
f 3 0 2048 20 2 ;windowing function
48
i 2 3 3 50 1 ;"eee.aiff"
49
i 2 + 3 50 2 ;"ahh.aiff"
50
i 2 + 3 100 1 ;"eee.aiff"
51
i 2 + 3 100 2 ;"ahh.aiff"
52
i 2 + 3 250 1 ;"eee.aiff"
53
i 2 + 3 250 2 ;"ahh.aiff"
54
i 2 + 3 20 1 ;"eee.aiff"
55
i 2 + 3 20 2 ;"ahh.aiff"
b'\\ No newline at end of file'