Page 1 of 1

Radiobuttons are driving me crazy

Posted: 06 Oct 2012 00:00
by jbgeluid
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

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);
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

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);
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 :cry:

Re: Radiobuttons are driving me crazy

Posted: 09 Oct 2012 12:53
by Macciza
Hi
One way is to use custom MIDI mapping
Create a custom MIDI within your (radio) Switches
Enter an array of controller values ie {1,31,30,29} for 4 pads
Value x and scale checked - this will give 127 when on and 0 when off. - Is that what you wanted?
Channel 15
Trigger x

This should send the CC from the array at 127 when pressed and when the previous one goes off it sends 0

Or add a Fader and make the value Fader.x*x and set trigger for it to none
Then it sends the Fader value when pressed and 0 when it goes out . . .

Hope that helps
MM