Debian Codegraph @

examples/pgmassign.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages MIDI in
5 -odac -iadc -d -M0 ;;;RT audio I/O with MIDI in
6 ; For Non-realtime ouput leave only the line below:
7 ; -o pgmassign.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; Initialize the global variables.
12 sr = 44100
13 kr = 4410
14 ksmps = 10
15 nchnls = 1
16
17 ; Program 55 (synth vox) uses Instrument #10.
18 pgmassign 55, 10
19
20 ; Instrument #10.
21 instr 10
22 ; Just an example, no working code in here!
23 endin
24
25
26 </CsInstruments>
27 <CsScore>
28
29 ; Play Instrument #10 for one second.
30 i 10 0 1
31 e
32
33
34 </CsScore>
35 </CsoundSynthesizer>