Hello everybody.
I start again feeling like a csound noob, so i post my problem here…
I want to call a instrument depending on the values of two buttons but it’s not working and i don’t know why. Maybe someone can check this out and help me. I just can’t see it. I already tried out several options.
Here is the example:
instr 1 ; widget controlls
gkAmp cabbageGetValue "amp"
gkDelTime chnget "delTime"
;gkTrig init 0
gkTrig chnget "trig"
printk2 gkTrig
gkTrig port gkTrig, 0.001
gkPanState chnget "pan"
gkPanState init 0
;gkRndDelTime init 0
gkRndDelTime chnget "rndDelTime"
printk2 gkRndDelTime, 50
; if gkRndDelTime == 1 && gkTrig == 1 then
; event "i", 2, 0, 1
; endif
if gkRndDelTime == 1 then
if gkTrig == 1 then
event "i", 2, 0, 1
endif
endif
endin
instr 2
prints "HELLO\n"
turnoff
endin
Here the .csd file
glitch-delay.csd (2.8 KB)