Debian Codegraph @

src/Examples/FLOSS Manual Examples/09 Csound in other Applications/09B03_maxcs_control_in.csd

raw
1 <CsoundSynthesizer>
2 <CsInstruments>
3 sr = 44100
4 ksmps = 32
5 nchnls = 2
6 0dbfs = 1
7
8 giSine ftgen 1, 0, 16384, 10, 1 ; Generate a sine wave table.
9
10 instr 1
11 kPitch chnget "pitch"
12 kMod invalue "mod"
13 aFM foscil .2, cpsmidinn(kPitch), 2, kMod, 1.5, giSine
14 outch 1, aFM, 2, aFM
15 endin
16 </CsInstruments>
17 <CsScore>
18 f0 86400
19 i1 0 86400
20 e
21 </CsScore>
22 </CsoundSynthesizer>
23 ;example by Davis Pyon