; Select audio/midi flags here according to platform
; Audio out Audio in No messages
-odac -iadc -d ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o FLsetText.wav -W ;;; for file output any platform
sr = 44100
ksmps = 128
nchnls = 2
; Example by Giorgio Zucco and Andres Cabrera 2007
FLpanel "FLsetText",250,100,50,50
gk1,giha FLcount "", 1, 20, 1, 20, 1, 200, 40, 20, 20, 0, 1, 0, 1
FLpanelEnd
FLrun
instr 1
; This instrument is triggered by FLcount above each time
; its value changes
iname = i(gk1)
print iname
; Must use FLsetText on the init pass!
if (iname == 1) igoto text1
if (iname == 2) igoto text2
if (iname == 3) igoto text3
igoto end
text1:
FLsetText "FM",giha
igoto end
text2:
FLsetText "GRANUL",giha
igoto end
text3:
FLsetText "PLUCK",giha
igoto end
end:
endin
f 0 3600