2 different cc for a toogle pad

Discuss Lemur and share techniques.
Post Reply
vicbit
Newbie
Posts: 8
Joined: 14 Dec 2011 10:52

2 different cc for a toogle pad

Post by vicbit »

I´m trying to send 2 differents values of midi cc for one toogle pad, the pad send cc 5/channel 16 and I want send cc20/channel16 in the same time so I added this script to the pad:

if(firstof(x))
{
ctlout(0,20,127,16);
}

don´t working ... what I miss?
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: 2 different cc for a toogle pad

Post by Macciza »

Hi
Checking with a Monitor always helps when trying to sort things out . . .
And checking what values are returned for functions as well . . .

firstof(Pads.x) for a single pad yields 1 when not pressed(total Number of Pads) & 0 when pressed (Number of Pad pressed)
Instead just use if(x) which will return 0 or 1 for NotPressed/Pressed . . .
Also channel was set to 1 not 16 . . .

May as well just handle both messages programmatically . . .
Make a script in the Pad, executing on Expression, x, any . . .
if (x)
{
ctlout(0,5,127,16); ctlout(0, 20, 127,16);
}
else
{
ctlout(0,5,0,16);ctlout(0, 20,0,16);
}

This will send 127 when pressed and 0 when released . .
Check with a MIDI Monitor program to confirm . . .

Cheers
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]
vicbit
Newbie
Posts: 8
Joined: 14 Dec 2011 10:52

Re: 2 different cc for a toogle pad

Post by vicbit »

Nice!!! really apreciate!!
Bishbo2000
Newbie
Posts: 9
Joined: 16 Jan 2012 09:32

Re: 2 different cc for a toogle pad

Post by Bishbo2000 »

Try this, I think its what you are looking for

http://liine.net/forum/viewtopic.php?f=24&t=903&start=0
vicbit
Newbie
Posts: 8
Joined: 14 Dec 2011 10:52

Re: 2 different cc for a toogle pad

Post by vicbit »

other way to do the task, cool!
Post Reply