Debian Codegraph @

examples/else.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 realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o else.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 instr 1
17
18 ipch = cpspch(p4)
19 ienv = p5
20
21
22 if (ienv == 0) then
23 kenv adsr 0.01, 0.95, .7, .5
24 else
25 kenv linseg 0, p3 * .5, 1, p3 * .5, 0
26 endif
27
28 aout vco2 .8, ipch, 10
29 aout moogvcf aout, ipch + (kenv * 6 * ipch) , .5
30
31 aout = aout * kenv
32 outs aout, aout
33
34 endin
35 </CsInstruments>
36 <CsScore>
37
38 i 1 0 2 8.00 0
39 i 1 3 2 8.00 1
40
41 e
42 </CsScore>
43 </CsoundSynthesizer>