form caption("Untitled") size(400, 300), colour(58, 110, 182), pluginID("def1")
button bounds(16, 14, 80, 40) channel("buttonchan") identchannel("But") text("Push me", "Push me") latched(0)
vslider bounds(200, 8, 50, 150) channel("vslider1") range(0, 1, 0, 1, 0.001)
vslider bounds(230, 8, 50, 150) channel("vslider2") range(0, 1, 0, 1, 0.001)
vslider bounds(260, 8, 50, 150) channel("vslider3") range(0, 1, 0, 1, 0.001)
-n -d -+rtmidi=NULL -M0 -m0d --midi-key-cps=4 --midi-velocity-amp=5
; Initialize the global variables.
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
if changed:k(chnget:k("buttonchan"))==1 then
reinit SET
endif
SET:
indx = 1
Loop:
Schan sprintf "vslider%d",indx
chnset 0, Schan
loop_le indx,1,3,Loop
endin
i 1 0 3600