Debian Codegraph @

examples/mdelay.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 -Q0
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 ;Triggered by MIDI notes on channel 1
17
18 kstatus init 0
19 ifund notnum
20 ivel veloc
21
22 noteondur 1, ifund, ivel, 1
23
24 kstatus = kstatus + 1
25
26 idel1 = .2
27 idel2 = .4
28 idel3 = .6
29 idel4 = .8
30
31 ;make four delay lines
32
33 mdelay kstatus,1,ifund+2, ivel,idel1
34 mdelay kstatus,1,ifund+4, ivel,idel2
35 mdelay kstatus,1,ifund+6, ivel,idel3
36 mdelay kstatus,1,ifund+8, ivel,idel4
37
38 endin
39
40 </CsInstruments>
41 <CsScore>
42 ; Dummy ftable
43 f 0 60
44 </CsScore>
45 </CsoundSynthesizer>
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63