Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Index in Switch Script

Kevin Jan 16, 2017 12:49AM CET

Hi,

Maybe it's just me, but couldn't find any information if there is a way to determine in script which Switch was changed on a Switches object's OnExpression callback?

I have 16 Switches in a matrix and I can make a separate OnExpression callback for each like:

OnExpression (x[0] is changing) >> noteout(0,x[0]*16 + 0,127,1);
OnExpression (x[1] is changing) >> noteout(0,x[1]*16 + 1,127,1);
...
OnExpression (x[15] is changing) >> noteout(0,x[15]*16 + 15,127,1);

But all the scripts are doing the same calculation based on the number which switch was changed. So basically this should be one script if I would be able to have a callback where I get a variable that tells me what Switch was changed.

Just for the simplicity I would like to send out different midi noteOn messages for every switch's both states as you can see on the example above.


Thanks for all your suggestions in advance,
Kevin

This question has received the maximum number of answers.

support@liine.net
http://assets3.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete