Page 1 of 1
2 different cc for a toogle pad
Posted: 20 Feb 2012 19:50
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?
Re: 2 different cc for a toogle pad
Posted: 20 Feb 2012 20:54
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
Re: 2 different cc for a toogle pad
Posted: 20 Feb 2012 21:44
by vicbit
Nice!!! really apreciate!!
Re: 2 different cc for a toogle pad
Posted: 21 Feb 2012 01:27
by Bishbo2000
Re: 2 different cc for a toogle pad
Posted: 21 Feb 2012 10:42
by vicbit
other way to do the task, cool!