Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05A03_linseg.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
12 ; a more complex amplitude envelope:
13 ; |-attack-|-decay--|---sustain---|-release-|
14 aEnv linseg 0, 0.01, 1, 0.1, 0.1, p3-0.21, 0.1, 0.1, 0
15 aSig poscil aEnv, 500
16 out aSig, aSig
17 endin
18
19 </CsInstruments>
20 <CsScore>
21 i 1 0 1
22 i 1 2 5
23 </CsScore>
24 </CsoundSynthesizer>
25 ;example by Iain McCurdy