I'm working on a set of abstractions for my Korg nanoKONTROL, and am currently using a one-to-one [ctlin x y] to physical control mapping, which means I have 42 separate ctlin objects, all with a specific cc number and channel. So if I or someone else wants to change the midi channel, I have to do it 42 separate times. What I'd like to do is simple in a C-style language:
if channel == 1 {
if cc == 13 {
pass(value);
}
}
Is there a good way to do a similarly nested if in pd? Or is there a way to limit ctlin to all cc's on a particular channel?
Thanks in advance.