A newer version of Max is available. Click here to access the latest version of the documentation

ggate Reference

Send input to one of two outlets

ggate

Description

Switches the right inlet between two output pathways.

Arguments

None.

Attributes

bgcolor [4 floats]7.0.0

Sets the outline color of the gswitch2 object in RGBA format.

color [4 floats]7.0.0

Sets the color of the gswitch2 pathway in RGBA format.

int [atom_long] (default: 0)

Specifies which one of the two outlets is to be open. The default is 0 (left outlet).

outputs [atom_long] (default: 2)

Sets the number of outputs. Default value is 2.

parameter_enable [int]

Enables use of this object with Max for Live Parameters and allows for setting initial parameter values in the Max environment.

parameter_mappable [int] (default: 1)

When parameter_mappable is enabled, the object will be available for mapping to keyboard or MIDI input using the Mappings feature.

style [symbol] (default: )7.0.0

Sets the style to be applied to the object. Styles can be set using the Format palette.

switchcolor [4 floats]7.0.0

Sets the color of the switch contacts in RGBA format.

Common Box Attributes

Parameter Attributes

Messages

bang

Causes the connection to be made to the other outlet. Clicking on the graphic display with the mouse has the same effect.

int

Arguments

outlet [int]
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 graphical icon shows the open outlet.

float

Arguments

outlet [float]
In left inlet: Converted to int.

(mouse)

Clicking on gswitch2 causes the connection to be made to the other outlet.

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.

See Also

Name Description
gate
gswitch
onebang
pictctrl
route
router
send
switch
Max MIDI Tutorial 1: Basic MIDI Max MIDI Tutorial 1: Basic MIDI