Radiobuttons are driving me crazy

Discuss problems and solutions.
Post Reply
jbgeluid
Regular
Posts:60
Joined:16 Jan 2012 14:03
Radiobuttons are driving me crazy

Post by jbgeluid » 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

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:
Cubase 11, Windows 10/
Intel I7 4930K @3.4Ghz/
multiple RME hammerfall cards
Controllers: Ipad2/16gb, Lemur, BCR2000
http://www.jbgeluid.nl

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: Radiobuttons are driving me crazy

Post by Macciza » 09 Oct 2012 12:53

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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]

Post Reply