Debian Codegraph @

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

raw
1 <CsoundSynthesizer>
2 <CsInstruments>
3 sr = 44100
4 ksmps = 32
5 nchnls = 2
6 0dbfs = 1
7
8 massign 0, 0 ; Disable default MIDI assignments.
9 massign 1, 1 ; Assign MIDI channel 1 to instr 1.
10
11 giSine ftgen 1, 0, 16384, 10, 1 ; Generate a sine wave table.
12
13 instr 1
14 iPitch cpsmidi
15 kMod midic7 1, 0, 10
16 aFM foscil .2, iPitch, 2, kMod, 1.5, giSine
17 outch 1, aFM, 2, aFM
18 endin
19 </CsInstruments>
20 <CsScore>
21 </CsScore>
22 </CsoundSynthesizer>
23 ;example by Davis Pyon