Debian Codegraph @

examples/noteondur.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 instr 1 ;Turned on by MIDI notes on channel 1
17
18 ifund notnum
19 ivel veloc
20 idur = 1
21
22 ;chord with single key
23 noteondur 1, ifund, ivel, idur
24 noteondur 1, ifund+3, ivel, idur
25 noteondur 1, ifund+7, ivel, idur
26 noteondur 1, ifund+9, ivel, idur
27
28 endin
29
30 </CsInstruments>
31 <CsScore>
32 ; Play Instrument #1 for 60 seconds.
33
34 i1 0 60
35
36 </CsScore>
37 </CsoundSynthesizer>
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56