OnRepeat

Emit a unit when a number of repetitions are observed

Syntax

OnRepeat options

Options

Inlets

Outlets

Comments

OnRepeat looks for a sequence of repeated inputs. The length of the sequence is determined by the parameter or inlet repeat. Once such a sequence is discovered, the repeated value is emitted. For example, if repeat is set to 5, then a succession of five equal inputs of any type will trigger an output. See the help patch for more examples.

If the actual repeated value is not necessary, the foundUnit outlet can be used instead of the found outlet. foundUnit always emits a value of unit type that can be easily used to trigger other actions in response to the repetition. Both outlets may be used simultaneously.

See Also

Change
IntRange
TypeFilter
Multitrigger