RNBO Objects & Operators latch
Open Help

latch

Conditionally pass or hold input

Description

Latch an input value based on the values read from the right inlet. The latch is closed on initialization, resulting in an output of 0 . Once a non-zero value is provided to the right inlet, values from the left inlet are routed to the output until another zero value is sent to the right inlet.

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.