Debian Codegraph @

examples/outkpc_fltk.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in No messages
5 -odac -iadc -d -M0 -Q1;;;RT audio I/O with MIDI in
6 </CsOptions>
7 <CsInstruments>
8
9 sr = 44100
10 kr = 4410
11 ksmps = 10
12 nchnls = 2
13
14 ; Example by Giorgio Zucco 2007
15
16 FLpanel "outkpc",200,100,90,90;start of container
17 gkpg, gihandle FLcount "Midi-Program change",0,127,1,5,1,152,40,16,23,-1
18 FLpanelEnd
19
20 FLrun
21
22 instr 1
23
24 ktrig changed gkpg
25 outkpc ktrig,gkpg,0,127
26
27 endin
28
29
30 </CsInstruments>
31 <CsScore>
32 ; Run instrument 1 for 60 seconds
33 i 1 0 60
34 </CsScore>
35 </CsoundSynthesizer>