form caption("FluidGUI") size(400, 300), colour(58, 110, 182), pluginid("def1")
combobox bounds(10, 10, 300, 50), file("GM_test.txt"), channeltype("string"), channel("GM")
keyboard bounds(8, 300, 381, 95)
-n -+rtmidi=NULL -M0 -m0d --midi-key-cps=4 --midi-velocity-amp=5
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
;instrument will be triggered by keyboard widget
instr 1
kEnv madsr .1, .2, .6, .4
aOut vco2 p5, p4
outs aOut*kEnv, aOut*kEnv
endin
instr 10
Sgm chnget "GM"
printks "'%s'\n",1, Sgm
endin
;causes Csound to run for about 7000 years...
f0 z
i10 0 z