So I'm working on a monome-style button layout and am using matrixctrl to simulate the presses (I don't have a monome).
I want to be able to press two buttons and that tell me which two I've pressed (this much is working). Then I want to reset my starting values (0. and 1.) when anything else happens (pressing a single button).
At the moment the logic (using zl filter, len, and reg) spits me out a value when two items are pressed, but I can't figure out how to tell when I'm only doing one press thereafter (without sending a bang on the 'button release' as well).
I thought about using [sel 1] in the mix to filter out 0s when I unclick a matrix dot, but I'm terrible at working with list stuff.
Here is the bit of code in question.