Counter double-counts carry?

Jun 26, 2009 at 8:43pm

Counter double-counts carry?

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?

#44553
Jun 26, 2009 at 8:47pm

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.

#160270
Jun 28, 2009 at 10:56am

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

% 4
sel 0

this will bang every 4 counts.

#160271

You must be logged in to reply to this topic.