Debian Codegraph @

examples/toot3.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6
7 instr 3 ; p3=duration of note
8
9 k1 linen p4, p6, p3, p7 ; p4=amp
10
11 a1 oscil k1, p5, 1 ; p5=freq
12
13 out a1 ; p6=attack time
14
15 endin
16
17 </CsInstruments>
18 <CsScore>
19
20 f1 0 4096 10 1 ; sine wave
21
22
23 ;ins strt dur amp(p4) freq(p5) attack(p6) release(p7)
24
25 i3 0 1 10000 440 0.5 0.7
26
27 i3 1.5 1 10000 440 0.9 0.1
28
29 i3 3 1 5000 880 0.02 0.99
30
31 i3 4.5 1 5000 880 0.7 0.01
32
33 i3 6 2 20000 220 0.5 0.5
34
35 e
36
37 </CsScore>
38 </CsoundSynthesizer>