Wrap program change on overflow

If I keep increasing the program change number it hits a number where there is not a corresponding pedalboard.
It would be nice to add a var that held number of boards in current set. If program change number is greater than maxboards then subtract maxboards from program change and if that result is smaller than max use that as the number to select a pedalboard else keep subtracting till number is between zero and maxboards+1

2 Likes