simple math problem (add)

coffeencigs's icon

hi..
i need help on addition
lets say i have a numbox with value 0

i now want to add 12 with a button press so the numbox says 12.. and then when i press the button again it should add 12 to 12 so the numbox says 24 then 36 and so on...

thank you very much

Jeremy's icon

You'll need exactly 1 object, in addition to the button, '+' and number box objects. Hint: its name can be abbreviated to a single letter...

Jeremy

coffeencigs's icon

i? f?

i still cant get the connection right
i think ill just use a umenu now^^

Jeremy's icon

This better not be homework.

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

Jeremy

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

try this

Brendan

coffeencigs's icon

thank you guys.

no its not homework^^

it will be a midi octave shifter for my launchpad

the_man361's icon

i dont know what others have suggested, but how about [incdec]