onoff Reference

Trigger an output alternating between 0 and 1

onoff

Examples

Inlets

in1 [bang]

in1

Outlets

out1 [number]

An alternating sequence of boolean values triggered from the input.

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

hot [bool] (default: false)

Trigger computation on all inlets.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [bang]

in1

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

See Also

Name Description
gate Pass an input to one of several outlets.
switch Accept messages from a specific inlet.