Radiobuttons are driving me crazy
Posted: 06 Oct 2012 00:00
A relative simple thing to create one would say:
I have a radiobutton with 8 switches.
Among other things I want:
cc19/ch15 to be send when button 2 is selected
cc30/ch15 to be send when button 3 is selected
cc29/ch15 to be send when button 3 is selected
Script: on expression, message send when value goes from 0 to positive
This works. Now I also want the same controller send, but ONLY when the radiobutton that is ON, goes off.
Easy ???
Script: on expression, message send when value goes from positive to 0
but, this does not work. Now all of a sudden Lemur sends all the selected messages all the time, even when I select button 0,1, 5,6,7.
I tried other settings, but no success...
What is going on here, can anybody explain?
Wall<<<<head
I have a radiobutton with 8 switches.
Among other things I want:
cc19/ch15 to be send when button 2 is selected
cc30/ch15 to be send when button 3 is selected
cc29/ch15 to be send when button 3 is selected
Script: on expression, message send when value goes from 0 to positive
Code: Select all
if (Switches.x[2]==1) ctlout (0, 31, 127, 15);
if (Switches.x[3]==1) ctlout (0, 30, 127, 15);
if (Switches.x[4]==1) ctlout (0, 29, 127, 15);
Easy ???
Script: on expression, message send when value goes from positive to 0
Code: Select all
if (Switches.x[2]==0) ctlout (0, 31, 127, 15);
if (Switches.x[3]==0) ctlout (0, 30, 127, 15);
if (Switches.x[4]==0) ctlout (0, 29, 127, 15);
I tried other settings, but no success...
What is going on here, can anybody explain?
Wall<<<<head