Debian Codegraph @

examples/hrtfstat-2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o hrtfstat-2.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1
17
18 iAz = p4
19 iElev = p5
20
21 itim = ftlptim(1)
22 ; transeg a dur ty b dur ty c dur ty d
23 kamp transeg 0, p3*.1, 0, .9, p3*.3, -3, .5, p3*.3, -2, 0
24 ain loscil3 kamp, 50, 1
25 aleft,aright hrtfstat ain, iAz, iElev, "hrtf-44100-left.dat","hrtf-44100-right.dat"
26 outs aleft, aright
27
28 endin
29 </CsInstruments>
30 <CsScore>
31 f 1 0 0 1 "Church.wav" 0 0 0 ;Csound computes tablesize
32
33 ; Azim Elev
34 i1 0 7 90 0 ;to the right
35 i1 3 7 -90 -40 ;to the left and below
36 i1 6 7 180 90 ;behind and up
37 e
38 </CsScore>
39 </CsoundSynthesizer>