Forums > MaxMSP

Counter double-counts carry?

June 26, 2009 | 8:43 pm

I am counting beats, and want an event to take place every four beats.

To do this, I’m sending bangs into a (counter 1 4) object, and connecting to a metro. However, I find that the carry output (second to last), sends out a bang TWICE when it overflows – once when the counter goes to 4, and then again when it rolls over to 1.

This is not useful naturally, and is unexpected. Is there another object that would let me count bangs, and trigger an event every x number of bangs?

June 26, 2009 | 8:47 pm

I am not on a machine with max right now, but I think that counter outputs a 1 when it reaches max and a 0 after that. use [sel 1] to only get the bang on the max number.

June 28, 2009 | 10:56 am

You can also use a plain counter (no arguments) and run the output through

% 4
sel 0

this will bang every 4 counts.

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

Forums > MaxMSP