Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05A06_line_vs_expon.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -odac
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 instr 1 ; line envelope
12 aEnv line 1, p3, 0
13 aSig poscil aEnv, 500
14 out aSig, aSig
15 endin
16
17 instr 2 ; expon envelope
18 aEnv expon 1, p3, 0.0001
19 aSig poscil aEnv, 500
20 out aSig, aSig
21 endin
22
23 </CsInstruments>
24 <CsScore>
25 i 1 0 2 ; line envelope
26 i 2 2 1 ; expon envelope
27 </CsScore>
28 </CsoundSynthesizer>
29 ;example by Iain McCurdy