Debian Codegraph @

examples/spsend.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 spsend.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2 ;stereo output
15
16 ga1 init 0
17 ga2 init 0
18
19 instr 1 ;sends different amounts to reverb
20
21 irev = p6
22 asig diskin2 "fox.wav", 1
23 a1, a2, a3, a4 space asig, 0, 0, irev, p4, p5 ;take position values from p4, p5
24 ar1, ar2, ar3, ar4 spsend ;send to reverb
25
26 ga1 = ga1+ar1
27 ga2 = ga2+ar2
28 outs a1, a2
29
30 endin
31
32 instr 99 ; reverb instrument
33
34 a1 reverb2 ga1, 2.5, .5
35 a2 reverb2 ga2, 2.5, .5
36 outs a1, a2
37
38 ga1=0
39 ga2=0
40
41 endin
42
43 </CsInstruments>
44 <CsScore>
45 ;WITH REVERB
46 ;place the sound in the left speaker and near
47 i1 0 1 -1 1 .1
48 ;place the sound in the right speaker and far
49 i1 1 1 45 45 .1
50 ;place the sound equally between left and right and in the middle ground distance
51 i1 2 1 0 12 .1
52
53 ;NO REVERB
54 ;place the sound in the left speaker and near
55 i1 6 1 -1 1 0
56 ;place the sound in the right speaker and far
57 i1 7 1 45 45 0
58 ;place the sound equally between left and right and in the middle ground distance
59 i1 8 1 0 12 0
60
61 i 99 0 12 ;keep reverb active all the time
62 e
63 </CsScore>
64 </CsoundSynthesizer>