Counter Node
Holds an integer counter that starts at 0 and is changed with the increment and reset actions. Has no audio inputs or outputs.
Configuration
This object does not provide any configuration options.
Properties
Inherits properties from its parents, Node, SwitchboardObject.
value (Read only)
Type: Int
Current value of the counter.
Actions
Inherits actions from its parent, SwitchboardObject.
increment
Increases the counter by 1 and emits valueChanged.
Parameters
None.
Return Value
None.
reset
Sets the counter to 0 and emits valueChanged, even if it was already 0.
Parameters
None.
Return Value
None.
Events
valueChanged
Emitted after every increment and reset call.
Data
| Name | Type | Description |
|---|---|---|
value | Int | The counter value after the change. |