Debian Codegraph @

examples/mute.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o mute.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 ; Mute Instrument #2.
17 mute 2
18 ; Mute Instrument three.
19 mute "three"
20
21 instr 1
22
23 a1 oscils 0.2, 440, 0
24 outs a1, a1
25 endin
26
27 instr 2 ; gets muted
28
29 a1 oscils 0.2, 880, 0
30 outs a1, a1
31 endin
32
33 instr three ; gets muted
34
35 a1 oscils 0.2, 1000, 0
36 outs a1, a1
37 endin
38
39 </CsInstruments>
40 <CsScore>
41
42 i 1 0 1
43 i 2 0 1
44 i "three" 0 1
45 e
46
47 </CsScore>
48 </CsoundSynthesizer>