form caption("guiMode queue") size(400, 300), pluginId("def1"), guiMode("queue")
gentable bounds(5, 5, 200, 90), channel("table1"), tableNumber(1), tableColour("yellow"), zoom(-1)
-n -d
; Initialize the global variables.
ksmps = 32
nchnls = 2
0dbfs = 1
i_ ftgen 1, 0, 1024, 9, 2, 1, 0
instr 1
kPN randomh 1,10,4
if changed(kPN)==1 then
reinit UPDATE
endif
UPDATE:
i_ ftgen 1, 0, 1024, 9, int(i(kPN)), 1, 0
cabbageSet "table1", "tableNumber", 1
rireturn
endin
f0 z
;starts instrument 1 and runs it for a week
i1 0 [60*60*24*7]