Hello!
I would like to ask if it is possible to change the range of an “rslider” dynamically. I have managed to change its position with this code:
kTrig6 changed kLfodestination1
if (kLfodestination1 == 9) then
cabbageSet kTrig6, “klfoamount1”, “bounds”, 20, 40, 70, 30
else
cabbageSet kTrig6, “klfoamount1”, “bounds”, 600, 232, 70, 70
endif
but not the range, tried something similar:
kTrig6 changed kLfodestination1
if (kLfodestination1 == 9) then
cabbageSet kTrig6, “klfoamount1”, “range”, -12, 12, 0, 1, 0.001
else
cabbageSet kTrig6, “klfoamount1”, “range”, 0, 1, 0, 1, 0.001
endif
I am not sure if I am doing something wrong or maybe is that not possible?
I am not launching a second instrument to run “CabbageSet” since in I included
“i1 0 z” in addition to “f0 z”.
Thanks!