Debian Codegraph @

examples/leftbrace.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o abs.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10 nchnls = 2
11
12 gaReverbSend init 0
13
14 ; a simple sine wave partial
15 instr 1
16 idur = p3
17 iamp = p4
18 ifreq = p5
19 aenv linseg 0.0, 0.1*idur, iamp, 0.6*idur, iamp, 0.3*idur, 0.0
20 aosc oscili aenv, ifreq, 1
21 vincr gaReverbSend, aosc
22 endin
23
24 ; global reverb instrument
25 instr 2
26 al, ar reverbsc gaReverbSend, gaReverbSend, 0.85, 12000
27 outs gaReverbSend+al, gaReverbSend+ar
28 clear gaReverbSend
29 endin
30
31 </CsInstruments>
32 <CsScore>
33 f1 0 4096 10 1
34
35 { 4 CNT
36 { 8 PARTIAL
37 ; start time duration amplitude frequency
38
39 i1 [0.5 * $CNT.] [1 + ($CNT * 0.2)] [500 + (~ * 200)] [800 + (200 * $CNT.) + ($PARTIAL. * 20)]
40 }
41 }
42
43 i2 0 6
44 e
45
46 </CsScore>
47 </CsoundSynthesizer>