Debian Codegraph @

src/Examples/FLOSS Manual Examples/03 Csound Language/03F02_OrderOfExc_event_k.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -nm0
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 441
8 0dbfs = 1
9 nchnls = 1
10
11 instr 1
12 kCycle timek
13 prints "Instrument 1 is here at initialization.\n"
14 printks "Instrument 1: kCycle = %d\n", 0, kCycle
15 endin
16
17 instr 2
18 kCycle timek
19 prints " Instrument 2 is here at initialization.\n"
20 printks " Instrument 2: kCycle = %d\n", 0, kCycle
21 if kCycle == 1 then
22 event "i", 3, 0, .02
23 event "i", 1, 0, .02
24 endif
25 printks " Instrument 2: still in kCycle = %d\n", 0, kCycle
26 endin
27
28 instr 3
29 kCycle timek
30 prints " Instrument 3 is here at initialization.\n"
31 printks " Instrument 3: kCycle = %d\n", 0, kCycle
32 endin
33
34 instr 4
35 kCycle timek
36 prints " Instrument 4 is here at initialization.\n"
37 printks " Instrument 4: kCycle = %d\n", 0, kCycle
38 endin
39
40 </CsInstruments>
41 <CsScore>
42 i 4 0 .02
43 i 2 0 .02
44 </CsScore>
45 </CsoundSynthesizer>
46 ;example by joachim heintz