Additional feature for a counter

carloskleiber's icon

Hello,
I need to navigate between 2 int values both incrementally and directly to the min and max values. I use 4 buttons for control, say DEC INC MIN MAX.
I have a patch that does this but I would like to add a feature. After jumping to MIN, pushing MAX should not go to the maximum value but to the last value before MIN (and vice versa)

Max Patch
Copy patch and select New From Clipboard in Max.

I am asking for help for the same reason as I have ended up using a patch of a non looping counter from the forums (thank you Chris Muir) in my work so far, as it is soo much better than what I could have come up with..
Thank you in advance!
carloskleiber

carloskleiber's icon

Perfect! Thank you very much!
And you are right: it makes more sense like this.

carloskleiber's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Hello Raja, there were some issues with your counter - it would add or substract 2 instead of 1 in certain situations for instance - , so I tried to mod it but it was easier to come up with a new one, it is a bit ugly patching but seems to work ok :)

Christopher Dobrian's icon