Debian Codegraph @

examples/locsig_quad.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 locsig_quad.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 4
14 0dbfs = 1
15
16 ga1 init 0
17 ga2 init 0
18 ga3 init 0
19 ga4 init 0
20
21 instr 1
22
23 krevsend = p4
24 aout diskin2 "drumsMlp.wav", 1, 0, 1
25 kdegree line 0, p3, 360 ;full circle
26 kdistance line 1, p3 , 1
27 a1, a2, a3, a4 locsig aout, kdegree, kdistance, krevsend
28 ar1, ar2, ar3, ar4 locsend
29
30 ga1 = ga1+ar1
31 ga2 = ga2+ar2
32 ga3 = ga3+ar3
33 ga4 = ga4+ar4
34 outq a1, a2, a3, a4
35
36 endin
37
38 instr 99 ; reverb instrument
39 a1 reverb2 ga1, 3.5, .5
40 a2 reverb2 ga2, 3.5, .5
41 a3 reverb2 ga3, 3.5, .5
42 a4 reverb2 ga4, 3.5, .5
43 outq a1, a2, a3, a4
44
45 ga1 = 0
46 ga2 = 0
47 ga3 = 0
48 ga4 = 0
49
50 endin
51 </CsInstruments>
52 <CsScore>
53 ; sine wave.
54 f 1 0 16384 10 1
55
56 i 1 0 14 .1 ;with reverb
57 i 1 14 14 0 ;no reverb
58 i99 0 36
59 e
60 </CsScore>
61 </CsoundSynthesizer>