TriggerCounter Op

TriggerCounter

Counts how often the port was triggered


Useful for e.g. for debugging when you need to know how often Execute has been triggered, or if it was triggered at all.


Full Name
  • Ops.Trigger.TriggerCounter
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches


Example Patch Click Counter

Left click to increase counter, right click to reset

Counts the clicks using the TriggerCounter-op. A simple modulo op loops the counter.

Open In Editor

INPUT PORTS


exe (Trigger)

Every time Execute is triggered, the output port Times Triggered will increment.

reset (Trigger)

Resets the counter

OUTPUT PORTS


trigger (Trigger)

Triggers every time Execute is triggered

timesTriggered (Number)

The number of times the input port Execute has been triggered


Patches using TriggerCounter

  • Examples
  • Public
  • My Patches

Changelog


add current count in extended titleuser avatarstephan - 2022-02-03 12:29