Page 1 of 1

Please help, I'm stumbling on this simple thing

Posted: 01 Oct 2016 17:40
by dburns
I'm trying to use a Multipad object and have a unique message sent per pad.I just want to have a simple script like this-

on expression x (rising)

if Pads.x[0]==1 noteout(0,24,127,1);
if Pads.x[1]==1 ctlout(0,1,120,1);
if Pads.x[2]==1 oscout(0,'pads','x');
if Pads.x[3]==1 noteout(0,25,120,1);


Where each pad can send out a unique message that I specify. I know this should be stupid simple, but I'm missing something. This is for a 4x4 multipad object, 2 rows, 2 columns.

thanks for any help in advance guys

Re: Please help, I'm stumbling on this simple thing

Posted: 01 Oct 2016 18:09
by MrCorba
I'm not sure what the problem is? Only thing I can see now is you're missing the parenthesis so

Code: Select all

if Pads.x[0] == 1 noteout(0,24,127,1);
should be

Code: Select all

if (Pads.x[0] == 1) noteout(0,24,127,1);
Other than that I don't know what the problem could be.

[Solved]Re: Please help, I'm stumbling on this simple thing

Posted: 01 Oct 2016 21:31
by dburns
AAAAH!!! Eureka !

The parenthesis worked.Thank you Thank you.