Debian Codegraph @

examples/outkc.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 outkc.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 ikey notnum
18 ivel veloc
19
20 kcut linseg 100, .5, 20 ;vary controller in .5 second
21 kbrt = int(kcut) ;whole numbers only
22 outkc 1, 74, kbrt, 0, 127 ;controller 74 (= brightness)
23 midion 1, ikey, ivel ;of external synth
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 f0 30 ;runs 30 seconds
29
30 e
31 </CsScore>
32 </CsoundSynthesizer>