Debian Codegraph @

examples/toot2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6
7 instr 2
8
9 a1 oscil p4, p5, 1 ; p4=amp
10
11 out a1 ; p5=freq
12
13 endin
14
15 </CsInstruments>
16 <CsScore>
17
18 f1 0 4096 10 1 ; sine wave
19
20
21 ;ins strt dur amp(p4) freq(p5)
22
23 i2 0 1 2000 880
24
25 i2 1.5 1 4000 440
26
27 i2 3 1 8000 523.251
28
29 i2 4.5 1 16000 659.255
30
31 i2 6 1 32000 783.991
32
33 e
34
35 </CsScore>
36 </CsoundSynthesizer>