Debian Codegraph @

src/Examples/FLOSS Manual Examples/10 Csound Frontends/10B01_cabbage_1.csd

raw
1 <Cabbage>
2 form caption("Untitled") size(400, 300), \
3 colour(58, 110, 182), \
4 pluginID("def1")
5 keyboard bounds(8, 158, 381, 95)
6 </Cabbage>
7 <CsoundSynthesizer>
8 <CsOptions>
9 -+rtmidi=NULL -M0 -m0d --midi-key-cps=4 --midi-velocity-amp=5
10 </CsOptions>
11 <CsInstruments>
12 ; Initialize the global variables.
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 ;instrument will be triggered by keyboard widget
19 instr 1
20 iFreq = p4
21 iAmp = p5
22 aOut vco2 iAmp, iFreq
23 outs aOut, aOut
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 ;causes Csound to run for about 7000 years...
29 f0 z
30 </CsScore>
31 </CsoundSynthesizer>