Debian Codegraph @

examples/aftouch.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out No messages MIDI in
5 -odac -d -M0 ;;;RT audio out with MIDI in
6 </CsOptions>
7 <CsInstruments>
8
9 sr = 44100
10 ksmps = 32
11 nchnls = 2
12 0dbfs = 1
13
14 instr 1
15
16 kaft aftouch 0, 1
17 printk2 kaft
18
19 ;aftertouch from music keyboard used for volume control
20 asig oscil 0.7 * kaft, 220, 1
21 outs asig, asig
22
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 ;sine wave.
28 f 1 0 16384 10 1
29
30 i 1 0 30
31 e
32
33 </CsScore>
34 </CsoundSynthesizer>