Debian Codegraph @

examples/midion2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -M0 -Q1 ;;;midi in and midi out
5 </CsOptions>
6 <CsInstruments>
7
8 sr = 44100
9 ksmps = 32
10 nchnls = 2
11 0dbfs = 1
12
13 instr 1
14
15 kcps line 3, p3, .1
16 klf lfo 1, kcps, 3 ;use a unipolar square to trigger
17 ktr trigger klf, 1, 1 ;from 3 times to .1 time per sec.
18 midion2 1, 60, 100, ktr
19
20 endin
21 </CsInstruments>
22 <CsScore>
23
24 i 1 0 20
25 e
26 </CsScore>
27 </CsoundSynthesizer>