Debian Codegraph @

examples/outkat.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 outkat.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 10
13 nchnls = 2
14
15 instr 1
16
17 ikey notnum
18 ivel veloc
19
20 kvib linseg 100, .5, 120 ;vary aftertouch in .5 second
21 kvbr = int(kvib) ;whole numbers only
22 outkat 1, kvbr, 0, 127 ;assign aftertouch on
23 printk2 kvbr ;external synth for example to
24 midion 1, ikey, ivel ;change depth of filter modulation
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 f0 30 ;play for 30 seconds
30
31 e
32 </CsScore>
33 </CsoundSynthesizer>