Description

The next four tutorial patchers explore the concept of iteration:

  • 08a Counter
  • 08b Iteration
  • 08c Counter(point)
  • 08d Countercanon

In computer science, iteration refers to the repetition of a process where a sequence of outcomes is produced. Each repetition is called an iteration, and the outcome of each step is used as the starting point for the next step. In preparation for the next patcher (08b Iteration), we introduce Max's counter object. By default this object will count normally; i.e., by ones. For example, if begin with zero and repeatedly add one, we get the sequence: 0, 1, 2, 3, etc.

This patcher uses a metro object to repeatedly play C4 (60) every second. The velocity of the C4 note event is set to 90. The duration is set to match the metro object's argument. Each incoming 'bang' message increments the counter object; i.e., with each repetition, one is added to the current count.

New Object

Objects

Updated: 9/23/25