Namespaces

Variants
Actions

counter

From Cycling '74 Wiki
(Difference between revisions)
Jump to: navigation, search
({{maxword|name=counter}} Tutorials)
 
Line 44: Line 44:
 
=={{maxword|name=counter}} Tutorials==
 
=={{maxword|name=counter}} Tutorials==
  
The {{maxword|name=counter}} object is introduced in [//www.cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter11| this Max tutorial]
+
The {{maxword|name=counter}} object is introduced in [http://www.cycling74.com/docs/max6/dynamic/c74_docs.html#basicchapter11 this Max tutorial]
  
 
=={{maxword|name=counter}} Tips and Workarounds==
 
=={{maxword|name=counter}} Tips and Workarounds==

Latest revision as of 20:04, 12 July 2013

Contents

[edit] counter online refpage

[edit] 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. --

[edit] counter Tutorials

The counter object is introduced in this Max tutorial

[edit] 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

[edit] Third-Party Max externals similar to the counter object

Maxobjects.com listing for the counter object

[edit] 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. --

[edit] Errors or Clarification

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