Debian Codegraph @

examples/locsend_stereo.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 locsend_stereo.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 ga1 init 0
17 ga2 init 0
18
19 instr 1
20
21 krevsend = p4
22 aout diskin2 "drumsMlp.wav", 1, 0, 1
23 kdegree line 0, p3, 180 ;left to right
24 kdistance line 1, p3, 30
25 a1, a2 locsig aout, kdegree, kdistance, p4
26 ar1, ar2 locsend
27 ga1 = ga1+ar1
28 ga2 = ga2+ar2
29 outs a1, a2
30
31 endin
32
33 instr 99 ; reverb instrument
34 a1 reverb2 ga1, 2.5, .5
35 a2 reverb2 ga2, 2.5, .5
36 outs a1, a2
37 ga1 = 0
38 ga2 = 0
39
40 endin
41 </CsInstruments>
42 <CsScore>
43 ; sine wave.
44 f 1 0 16384 10 1
45
46 i 1 0 4 .1 ;with reverb
47 i 1 + 4 0 ;no reverb
48 i99 0 7
49 e
50 </CsScore>
51 </CsoundSynthesizer>