Page 1 of 1

switch array

Posted: 02 Nov 2012 18:38
by wul
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

Re: switch array

Posted: 05 Nov 2012 22:23
by Anton
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