Debian Codegraph @

examples/xadsr.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 xadsr.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 iatt = p5
19 idec = p6
20 islev = p7
21 irel = p8
22
23 kenv xadsr iatt, idec, islev, irel
24 kcps = cpspch(p4) ;frequency
25
26 asig vco2 kenv * 0.8, kcps
27 outs asig, asig
28
29 endin
30
31 </CsInstruments>
32 <CsScore>
33
34 i 1 0 1 7.00 .0001 1 .01 .001 ; short attack
35 i 1 2 1 7.02 1 .5 .01 .001 ; long attack
36 i 1 4 2 6.09 .0001 1 .1 .7 ; long release
37
38 e
39 </CsScore>
40 </CsoundSynthesizer>