Debian Codegraph @

examples/subinstrinit.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7
8 ; By Stefano Cucchi 2020
9
10 </CsOptions>
11 <CsInstruments>
12
13 ; Initialize the global variables.
14 sr = 44100
15 ksmps = 32
16 nchnls = 2
17 0dbfs = 1
18
19 instr 1
20 subinstrinit p4
21 endin
22
23 instr 2
24 prints "instr. 2 playing\n"
25 endin
26
27 instr 3
28 prints "instr. 3 playing\n"
29 endin
30
31 instr 4
32 prints "instr. 4 playing\n"
33 endin
34
35
36 </CsInstruments>
37 <CsScore>
38
39
40 i1 0 2 2
41 i1 2 2 3
42 i1 4 2 4
43
44 e
45
46 </CsScore>
47 </CsoundSynthesizer>