form caption("Untitled") size(400, 300), pluginid("def1")
keyboard bounds(8, 158, 381, 95)
image bounds(0, 0, 50, 50), file("hex1.png"), channel("hex1")
image bounds(39, 26, 50, 50), file("hex3.png"), channel("hex3")
image bounds(0, 51, 50, 50), file("hex4.png"), channel("hex4")
-n -d -+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 100
kHex1 chnget "hex1"
printk2 kHex1
kHex1 chnget "hex3"
printk2 kHex1
kHex1 chnget "hex4"
printk2 kHex1
endin
;causes Csound to run for about 7000 years...
f0 z
i100 0 z