Counter
Counts a whole number up, down or back to a start value on triggers.
Parameters
| Name | Type | Description |
|---|---|---|
| Valueoutput | Int | The current count. |
| Step | Int | How much the count changes on each increment or decrement. |
| Increment | Trigger | Adds the step to the count. |
| Decrement | Trigger | Takes the step off the count. |
| Reset | Trigger | Sets the count to the reset value. |
| Reset To | Int | The count after a reset. |
| Limit Range | Bool | Whether the count is kept between a minimum and a maximum. |
| Range | Vector 2 Int | The lowest and the highest count allowed, both included. Only present when Limit Range is on. |
| At Edge | Enum | What 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.
Keywords: count, increment, decrement, step, index, tally