Forums > MaxMSP

Additional feature for a counter

Jun 08 2014 | 6:49 pm

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)

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!

-- Pasted Max Patch, click to expand. --

Jun 08 2014 | 7:45 pm

hi, this might not be exactly what you asked for, but should be easy for you to mod for your needs:

— Pasted Max Patch, click to expand. —
Jun 09 2014 | 1:59 am

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

Jun 13 2014 | 4:27 am

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 :)

-- Pasted Max Patch, click to expand. --

Jun 13 2014 | 10:29 am
Jun 13 2014 | 10:34 am

apologies, i must not have looked close enough through my patching… did it a bit quickly.

glad you figured out your own solution.

christopher’s also looks brilliant(the simpler the better!). edit: speaking of the patch he had there before :p

glad i could help, even if just a little :)

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > MaxMSP