Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03F08_Generate_event_pool.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 seed 0; random seed different each time
12
13 instr 1 ;master instrument with event pool
14 scoreline_i {{i 2 0 2 7.09
15 i 2 2 2 8.04
16 i 2 4 2 8.03
17 i 2 6 1 8.04}}
18 endin
19
20 instr 2 ;plays the notes
21 asig pluck .2, cpspch(p4), cpspch(p4), 0, 1
22 aenv transeg 1, p3, 0, 0
23 outs asig*aenv, asig*aenv
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 i 1 0 7
29 e
30 </CsScore>
31 </CsoundSynthesizer>
32 ;example by joachim heintz