ggate

Pass the input out one of two outlets

Description

ggate switches the right inlet between two output pathways.

Arguments

None.

Messages

bang In left inlet: Causes the connection to be made to the other outlet. Clicking on ggate with the mouse has the same effect.
int outlet-number (0 or non-zero) [int]
In left inlet: The number specifies which one of the two outlets is to be open. 0 specifies the left outlet, any number other than 0 specifies the right outlet. The ggate icon shows the open outlet.
float outlet-number (0 or non-zero) [float]
In left inlet: Converted to int.
(mouse) Clicking on gswitch2 causes the connection to be made to the other outlet.

Attributes

Name Type g/s Description
int int
def.:0
Specifies which one of the two outlets is to be open. The default is 0 (left outlet).

Information for box attributes common to all objects

Output

anything: Messages received in the right inlet are passed out one of the two outlets. If the number in the left inlet is 0, incoming messages are sent out the left outlet. If the number in the left inlet is not 0, messages are sent out the right outlet.

Examples

Specify one of two outlets... Any comparison can be used as a criterion

See Also

Name Description
gate Pass the input out a specific outlet
gswitch Receive the input in one of two inlets
onebang Traffic control for bang messages
pictctrl Picture-based control
route Selectively pass the output out a specific outlet
router matrixctrl-compatible Max message router
send Send messages without patch cords
switch Output messages from a specific inlet
Max MIDI Tutorial 1: Basic MIDI Max MIDI Tutorial 1: Basic MIDI