Forums > MaxMSP

increase and decrease a number with one

June 18, 2011 | 10:34 am

Hi,

I would like to increase and decrease a number with one by clicking an "increase" and a "decrease" button.
In order to avoid stack overflow, then I need to do some magic … can anyone help me with this?
Perhaps the below patch is a good start, but I don’t seem to be able to figure it out …

– Pasted Max Patch, click to expand. –

Thanks for your help!

K.



Jan
June 18, 2011 | 11:19 am

Many solutions. I.e this:

`

– Pasted Max Patch, click to expand. –

also you might take a look at [counter]


June 18, 2011 | 12:31 pm

How nice! … sometimes life is more simple than you would think :-)


June 18, 2011 | 12:53 pm

There is also the [incdec] object.


June 18, 2011 | 12:53 pm

What’s wrong with [incdec]?

– Pasted Max Patch, click to expand. –


Jan
June 18, 2011 | 1:13 pm

Nothing wrong about [incdec] !!! I think he is a very pleasant fellow ;)


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