From Cycling '74 Wiki
Revision as of 20:04, 12 July 2013 by Corymetcalf (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


counter online refpage

Using the counter object

One common use of the counter object is to performed timed iterations through a list - outputting one element of the list once every N milliseconds. Here are some examples of how to do this:

-- Pasted Max Patch, click to expand. --

counter Tutorials

The counter object is introduced in this Max tutorial

counter Tips and Workarounds

When the counter object is used in palindrome mode, it counts up to its limit and immediately back down (e.g. 0 1 2 3 4 3 2 1 0 1 2...). In some situations you may need to output the upper and lower limits twice for doing things like syncing with drum machines (e.g. 0 1 2 3 4 4 3 2 1 0 0 1 2...). Here are a couple of workarounds that'll do this:

-- Pasted Max Patch, click to expand. --

Here's a one-shot counter that will count up or down and then stop until it's reset:

-- Pasted Max Patch, click to expand. --

Click here for a Javascript-based binary counter

Third-Party Max externals similar to the counter object listing for the counter object

People who looked at this object also looked at....

For "count by N" situations, the accum object can be really useful:

-- Pasted Max Patch, click to expand. --

Errors or Clarification

(please list things that you believe to be errors or omissions from the existing refpage)