Please help, I'm stumbling on this simple thing

Discuss problems and solutions.
Post Reply
dburns
Newbie
Posts:25
Joined:14 Apr 2012 04:31
Please help, I'm stumbling on this simple thing

Post by dburns » 01 Oct 2016 17:40

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

MrCorba
Regular
Posts:143
Joined:02 Sep 2013 20:17
Location:Netherlands

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

Post by MrCorba » 01 Oct 2016 18:09

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.
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba

dburns
Newbie
Posts:25
Joined:14 Apr 2012 04:31

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

Post by dburns » 01 Oct 2016 21:31

AAAAH!!! Eureka !

The parenthesis worked.Thank you Thank you.

Post Reply