Forums > MaxMSP

reset a counter without causing a message to be outputted?

September 15, 2013 | 8:11 am

how do i reset a counter without causing a message to be outputted?
currently banging a ’0′ message to the counters (reset counter to number)input, each time i need to reset it, however this cause a 0 to be outputted, which then cause other problems down the signal chain.
is there a reset message? or clear message? etc etc…


September 15, 2013 | 9:50 am

.


September 15, 2013 | 9:51 am

try the inlet "reset counter to number on next clock" (third inlet)


September 15, 2013 | 11:06 am

also, read the objects reference for a list of all the messages a given object recognizes.


September 15, 2013 | 2:14 pm

Tip of the day: Hover the mouse pointer over an object inlet and look for a red or blue circle. If it’s red, it’s hot. If it’s blue it’s cold. Hot means immediate output. Cold means the value is set without output. If you want to make a hot inlet cold, prepend the input with "set". ex. "set 0"


September 15, 2013 | 5:51 pm

If you want to make a hot inlet cold, prepend the input with "set". ex. "set 0"

this is a semi bad advice to give, as that method doesn’t work automatically for every object ;)


September 16, 2013 | 1:43 am

yes, you’re right.. I shouldn’t have made a general reference. But it should still help him with his counter problem. :) thanks vichug


September 17, 2013 | 11:59 am

If you want to make a hot inlet cold, prepend the input with "set". ex. "set 0"

i say it’s also semi good advice :D

because it gets one to look for this message in any other object you might use in a similar situation like the ‘accum’ object.

this is the best advice, though, because even a beginner should be able to find the ‘set’ message:

"also, read the objects reference for a list of all the messages a given object recognizes."


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