Debian Codegraph @

examples/outkpc.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 kprogram init 0
17
18 instr 1 ;Triggered by MIDI notes on channel 1
19
20 ifund notnum
21 ivel veloc
22 idur = 1
23
24 ; Sends a MIDI program change message according to
25 ; the triggering note's velocity
26 outkpc 1 ,ivel ,0 ,127
27
28 noteondur 1 ,ifund ,ivel ,idur
29
30 endin
31
32 </CsInstruments>
33 <CsScore>
34 ; Dummy ftable
35 f 0 60
36 </CsScore>
37 </CsoundSynthesizer>
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58