Counter Questions

Spacekitten's icon

1. What's a good way to stop a counter (@ 0) without turning off the metro?

2. Is there a way to add/subtract an amount other than 1 to a counter? (like make it jump back 10)?

TIA!

Luke Hall's icon

1. You can use the third outlet to report when the counter reaches its maximum value and use that to close a [gate].

2. Use a [*] after your counter to increase the step size.

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

lh

Chris Muir's icon

There is a jam message to Counter that allows you to set it to some arbitrary place.

dd1984's icon

maybe . . .

1. if you run a counter through a number box, you can limit the min / max value

2. run the counter thru a [+ 10] or a [- 10]

rhetoric's icon

i also have a counter question.

if i have a counter object with no minimun, maximum or direction specified (the object is just counter), how far will it count? infinite? or 2^64?

thank youu

Chris Muir's icon

Infinite would be a good trick. It uses a signed 32 bit integer, so 2,147,483,647.

Roman Thilenius's icon

if no direction is specified, it will just jump across the garden like a little dog.

jonathanb's icon

Or you can make your own counter, and just select 0 to make the count pause:

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