Debian Codegraph @

src/Examples/FLOSS Manual Examples/09 Csound in other Applications/09A04_pdcs_events.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5 sr = 44100
6 ksmps = 8
7 nchnls = 2
8 0dbfs = 1
9 seed 0; each time different seed
10
11 instr 1
12 iDur random 0.5, 3
13 p3 = iDur
14 iFreq1 random 400, 1200
15 iFreq2 random 400, 1200
16 idB random -18, -6
17 kFreq linseg iFreq1, iDur, iFreq2
18 kEnv transeg ampdb(idB), p3, -10, 0
19 aTone poscil kEnv, kFreq
20 outs aTone, aTone
21 endin
22
23 </CsInstruments>
24 <CsScore>
25 </CsScore>
26 </CsoundSynthesizer>
27 ;example by joachim heintz