beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

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.


Edit Documentation

Full Name
  • Ops.Trigger.TriggerCounter
Visibility
  • Core Op - Official cables op
Author


 

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


Usages of TriggerCounter

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


add current count in extended titleuser avatarstephan - 2022-02-03