gate
Examples

Message is passed out the specified outlet.... This one closes the door behind itself
Arguments
outlets [int]
Optional
Specifies the number of outlets. If there is no argument, there is only one outlet.
initial-state [int]
Optional
Specifies which outlet is initially open. The default is 0 (none).
Attributes
Common Box Attributes
Messages
bang
Reports the current open outlet (0 if closed) out the left outlet.
int
Arguments
outlet-number
[int]
The number specifies an open outlet through which to pass all messages received in the right inlet. A number in the left inlet does not trigger any output.
float
Arguments
outlet-number
[float]
Converted to
. Output
anything
Messages received in the right inlet are passed out the outlet specified by the number in the left inlet. If the number in the left inlet is
, or if no outlet number has been received yet, all messages are ignored. If the number in the left inlet is less than 0, messages are sent out the leftmost outlet. If it is greater than the number of existing outlets, messages are sent out the rightmost outlet.See Also
Name | Description |
---|---|
ggate | |
gswitch | |
route | |
router | |
send | |
switch | |
Max Basic Tutorial 9: Mouse Drawing | Max Basic Tutorial 9: Mouse Drawing |
Max Basic Tutorial 21: Controlling Data Flow | Max Basic Tutorial 21: Controlling Data Flow |