Debian Codegraph @

examples/hrtfstat.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.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 gasrc init 0
17
18 instr 1 ;a plucked string
19
20 kamp = p4
21 kcps = cpspch(p5)
22 icps = cpspch(p5)
23 a1 pluck kamp, kcps, icps, 0, 1
24
25 gasrc = a1
26
27 endin
28
29 instr 10;uses output from instr1 as source
30
31 aleft,aright hrtfstat gasrc, 90,0, "hrtf-44100-left.dat","hrtf-44100-right.dat"
32 outs aleft, aright
33
34 clear gasrc
35 endin
36
37 </CsInstruments>
38 <CsScore>
39
40 i1 0 2 .7 8.00 ; Play Instrument 1: a plucked string
41 i1 .5 2 .7 8.00
42 i1 1 2 .7 8.00
43 i1 2 2 .7 7.00
44
45 i10 0 12 ; Play Instrument 10 for 2 seconds.
46
47 </CsScore>
48 </CsoundSynthesizer>