Counter

Counts a whole number up, down or back to a start value on triggers.

Parameters

NameTypeDescription
ValueoutputIntThe current count.
StepIntHow much the count changes on each increment or decrement.
IncrementTriggerAdds the step to the count.
DecrementTriggerTakes the step off the count.
ResetTriggerSets the count to the reset value.
Reset ToIntThe count after a reset.
Limit RangeBoolWhether the count is kept between a minimum and a maximum.
RangeVector 2 IntThe lowest and the highest count allowed, both included. Only present when Limit Range is on.
At EdgeEnumWhat happens when the count would leave the range. Only present when Limit Range is on.Choices: Wrap, Stop

The Counter operator keeps a whole number that triggers move up and down. Use it as an index: a Beat on the increment and a wrapped range give a number that walks through a list in time and starts over at the end.

With Limit Range on, the count stays within the range. In Wrap mode, counting past one end continues from the other, so counting up past the highest count lands on the lowest. In Stop mode, the count holds at the edge.

See also Beat, Drift.

Keywords: count, increment, decrement, step, index, tally