Debian Codegraph @

examples/shaker.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o shaker.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Menno Knevel
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 knum = p5
21 kfreq line p4, p3, 440
22 a1 shaker .5, kfreq, 8, 0.999, knum
23 outs a1, a1
24
25 endin
26
27 </CsInstruments>
28 <CsScore>
29 ; frq #
30 i 1 0 1 440 3
31 i 1 2 1 440 300
32 i 1 4 1 440 3000
33 i 1 6 2 4000 100
34
35 </CsScore>
36 </CsoundSynthesizer>