General

help with Pad arrays

Started by whatisvalis on .

Sign in or create an account to join the conversation.

10 posts

Topic starter
Hi,

Wondering if the following concept is possible or if there is another way you guys can help me achieve this:

I have a number of Pad arrays that send CC msgs (to change articulations for different libraries).

What i want to do is when you press the transport record button (via lemur) it also sends out the CC of the currently selected pad array. Since there are a number of different arrays could I use a monitor for each array that shows the selected CC, and then have the record button get the value of the active array and send it as a CC msg?

cheers,

JD
Its not always true!

You see, when no pad is pressed, the firstof(x) returns the size of the x array so when you release your finger off the pads, lastCC would become 16 (size of Pads.x) + 21.
The reason this was not required in the initial script (my first approach) was because it was set to execute on x rising from zero (so it wouldnt be executing when a pad was released).

So in essense the above statement says

firstof(Pads.x)<16?firstof(Pads.x)+21
if firstof(Pads.x)<16 (if ANY pad is pressed) then lastCC = firstof(Pads.x)+21

:lastCC
else (if no pad is pressed) lastCC = lastCC (it retains its current value)



;)