Debian Codegraph @

examples/hrtfer.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o hrtfer.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 2
16
17 instr 1
18 kaz linseg 0, p3, -360 ; move the sound in circle
19 kel linseg -40, p3, 45 ; around the listener, changing
20 ; elevation as its turning
21 asrc soundin "beats.wav"
22 aleft,aright hrtfer asrc, kaz, kel, "HRTFcompact"
23 aleftscale = aleft * 200
24 arightscale = aright * 200
25
26 outs aleftscale, arightscale
27 endin
28
29
30 </CsInstruments>
31 <CsScore>
32
33 i 1 0 2
34 e
35
36
37 </CsScore>
38 </CsoundSynthesizer>