switch array

Discuss problems and solutions.
Post Reply
wul
Regular
Posts:181
Joined:10 Apr 2012 13:25
switch array

Post by wul » 02 Nov 2012 18:38

i know how to address a individual pad from an array using the firstof() instruction to access the first non null element of an array
but lets say i want to send a sysex message when a switch within a switch array is pressed that includes a reference to the switch pressed.
cant use firstof instruction because multiple switches will be on
could use an if nest, but there is 36 switches
sure there is any easy, and obvious way that i'm missing

Anton
Regular
Posts:75
Joined:08 Dec 2011 12:36

Re: switch array

Post by Anton » 05 Nov 2012 22:23

Switch.x then relace the i with the switch or pad.
So Pad.x[0]gives younthe adres of the first pad .x[1] the second etc

Post Reply