Debian Codegraph @

examples/midion_scale.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 ; Triggered by MIDI notes on channel 1
17
18 ivel veloc
19
20 krate = 8
21 iscale = 100 ;f
22
23 ; Random sequence from table f100
24 krnd randh int(14),krate,-1
25 knote table abs(krnd),iscale
26 ; Generates random notes from the scale on ftable 100
27 ; on channel 1 of csound's MIDI output
28 midion 1,knote,ivel
29
30 endin
31
32 </CsInstruments>
33 <CsScore>
34 f100 0 32 -2 40 50 60 70 80 44 54 65 74 84 39 49 69 69
35
36 ; Dummy ftable
37 f0 60
38 </CsScore>
39 </CsoundSynthesizer>
40
41
42
43
44
45
46
47
48
49
50
51
52