I have a small part of a patch here that I'm working on.
All it does is look at the lowest and highest number, and also a total number, which includes the two toggles selected plus counts the number of toggles in between them. What I have done works fine, but I'm guessing there is a much better way of achieving it. I think I've over complicated it. I'd appreciate i if someone could show me a simpler way of achieving the same thing.
Also, just thought, purely cosmetic, but it would be nice if the toggles between the lowest and highest were switched on, so for instance if you press toggles 2 and 7 then 3, 4, 5, 6 would be turned on. if you released toggle 7 then 3, 4, 5, 6 would be turned off again just leaving 2. As I said purely cosmetic. I'm using the patch with touchOSC. It would just mean that the buttons in between would light up on the iPad. Definitely not essential.
Thanks in advance for any help.