For a Waldorf microQ, there are up to 382 parameters. Assume we set them all as virtual parameters numbered 1..382, you would notice there are ‘holes’ in the numbers: we’d have numbers 1-13, 17-29, 33-43, 49-etc
For parsing an incoming sysex string, I’d like to set a loop from i = 1..382.
For each i, I’d like to check if virtual parameter i exists in the preset.
- If the parameter exists, I’ll update it with the value from the sysex.
- If it doesn’t I’ll skip i and continue the loop.
My question: what is the fastest way (without building a hard coded array for it) in lua to" check if virtual parameter i exists" ?