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?
2 different cc for a toogle pad
Re: 2 different cc for a toogle pad
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
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]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Re: 2 different cc for a toogle pad
Nice!!! really apreciate!!
-
- Newbie
- Posts: 9
- Joined: 16 Jan 2012 09:32
Re: 2 different cc for a toogle pad
Try this, I think its what you are looking for
http://liine.net/forum/viewtopic.php?f=24&t=903&start=0
http://liine.net/forum/viewtopic.php?f=24&t=903&start=0
Re: 2 different cc for a toogle pad
other way to do the task, cool!