I have built a step sequencer that is more or less working, except for a big problem. Each step is a number box, and the number boxes are very unresponsive when the patch is running.
My suspicion is that this is due to the method I am using to indicate the active step - first, changing the bgcolor of all the number boxes to black (using an uzi) and then changing the bgcolor of the active box to red.
I tried sticking a defer after the messages that change the bgcolor, and while responsiveness improved, the highlighting stopped working.
How can I make the patch stay responsive while running, and also have the highlighting work? Running the subpatch on its own seems to work well.
Patch and subpatches are attached - sequencer test.maxpat is the main patch.
Changing the "length" number boxes changes the length of the sequence, and grays out the inactive number boxes.
Turning on the beat clock and enabling the layer starts the sequencer, and you should see a red highlight moving along.