RNBO Objects & Operators gate
Open Help

gate

Pass an input to one of several outlets.

Description

Use gate to route an input message at the second inlet to one of several outlets, or to no outlet at all. When there is only one outlet (the default case), it acts as a simple switch.

Arguments

outputs [number]

Optional

Specifies the number of outlets. If there is no argument, there is only one outlet.

onoff [number]

Optional

Specifies which outlet is initially open. The default is 0 (none).

Inlets

onoff [number]

Specifies which outlet is initially open. The default is 0 (none).

input [bang, number, list]

Messages will be passed to the outlet specified by the number sent to the left inlet.

Fixed Attributes

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

outputs [number] (default: 1)

Specifies the number of outlets. If there is no argument, there is only one outlet.

Dynamic Attributes

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

input [bang, number, list]

Messages will be passed to the outlet specified by the number sent to the left inlet.

onoff [number]

Specifies which outlet is initially open. The default is 0 (none).

See Also

Name Description
gate
gate~
switch
selector~
gate~ Pass a signal to one of several outlets.
matrix~ Signal routing and mixing matrix
receive Receive messages without patch cords
receive~ Receive signals without patch cords
route Select outlet based on input matching.
routepass Select outlet based on input matching.
select Output bangs based on input matching
selector~ Assign one of several inputs to an outlet
send Send messages without patch cords
send~ Send signals without patch cords
switch Accept messages from a specific inlet.