Debian Codegraph @

examples/midion_simple.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
17 instr 1 ;Triggered by MIDI notes on channel 1
18
19 ifund notnum
20 ivel veloc
21
22 knote1 init ifund
23 knote2 init ifund + 3
24 knote3 init ifund + 5
25
26 ;minor chord on MIDI out channel 1
27 ;Needs something plugged to csound's MIDI output
28 midion 1, knote1,ivel
29 midion 1, knote2,ivel
30 midion 1, knote3,ivel
31
32 endin
33
34
35 </CsInstruments>
36 <CsScore>
37 ; Dummy ftable
38 f0 60
39 </CsScore>
40 </CsoundSynthesizer>
41
42
43
44
45
46
47
48
49
50
51