Debian Codegraph @

examples/outipc.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -Q1 -M0 ;;;realtime audio out and midi in and out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o outipc.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14
15 instr 1
16
17 outipc 1, 80, 0, 127 ;program change --> 80
18 ikey notnum
19 ivel veloc
20 midion 1, ikey, ivel ;play external synth
21
22 endin
23 </CsInstruments>
24 <CsScore>
25 f0 30 ;runs 30 seconds
26
27 e
28 </CsScore>
29 </CsoundSynthesizer>