General
2 different cc for a toogle pad
Started by vicbit on .
Sign in or create an account to join the conversation.
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?
if(firstof(x))
{
ctlout(0,20,127,16);
}
don´t working ... what I miss?
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
Nice!!! really apreciate!!
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
other way to do the task, cool!