Debian Codegraph @

examples/vincr-complex.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 RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o vincr-complex.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 gaReverbSend init 0
17
18 instr 1
19
20 iamp = p4
21 ifreq = p5
22 aenv linseg 0.0, 0.1*p3, iamp, 0.6*p3, iamp, 0.3*p3, 0.0
23 aosc poscil aenv, ifreq, 1
24 vincr gaReverbSend, aosc
25 endin
26
27
28 instr 2 ; global reverb instrument
29
30 al, ar reverbsc gaReverbSend, gaReverbSend, 0.85, 12000
31 outs gaReverbSend+al, gaReverbSend+ar
32 clear gaReverbSend
33 endin
34
35 </CsInstruments>
36 <CsScore>
37 f1 0 4096 10 1
38
39 { 4 CNT
40 { 8 PARTIAL
41 ; start time duration amplitude frequency
42 i1 [0.5 * $CNT.] [1 + ($CNT * 0.2)] [.04 + (~ * .02)] [800 + (200 * $CNT.) + ($PARTIAL. * 20)]
43 }
44 }
45
46 i2 0 6
47 e
48 </CsScore>
49 </CsoundSynthesizer>
50