Patch Editor
Utility Patches
Counter Patch

Counter Patch

Use the Counter patch to count pulses. You can then make something happen when each pulse is counted or when a specific number of pulses are counted.

Inputs

NameDescription

Increase

Count each pulse to make something happen in increasing order from lowest to highest value.

Decrease

Count each pulse to make something happen in decreasing order from highest to lowest value.

Jump

Go straight to the value entered in the Jump to Number field when a pulse is detected.

Settings

NameDescription

Jump to Number

Count each pulse to make something happen in increasing order from lowest to highest value.

To jump to a specific value, the output on the preceding patch must be connected to the Jump input.

Maximum Count

Enter the number of values you want to use.

You can use up to five values.

Output

NameDescription

Count

Send the signal to the next patch, such as an Option Picker patch.

Example

In the example below, the color of the object changes when a screen tap is detected and the pulse is counted.

We achieved this with the graph below:

To do this:

  1. We connected the Tap output on the Screen Tap patch to the Increase input on the Counter patch to ensure all pulses are counted.

  2. We then connected the Count output on the Counter patch to the Option input on the Option Picker patch.

  3. On the Option Picker patch, we entered three color values in the top three fields.

  4. Finally, on the Counter patch, we set the Maximum Count to 3. This ensures only the top three values on the Option Picker patch can be used in the effect.

Was this article helpful?