latch Reference

Conditionally pass or hold input

latch

Examples

Arguments

control [number]

Optional

A zero value will close the latch while a non-zero value will open the latch.

Inlets

x [number]

Input to be latched

control [number]

A zero value will close the latch while a non-zero value will open the latch.

Outlets

out1 [number]

The latched output

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

control [number]

A zero value will close the latch while a non-zero value will open the latch.

reset [bang] (default: 0)

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

x [number]

Input to be latched

See Also

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