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

trigger

Send input to many places, in order

Description

trigger, also instantiated with the simple name of "t", outputs any input received in order from right to left and formatted according to the object-argument specified.

Arguments

Name Type Opt Description
message-format (i f b l or s) symbol opt The number of arguments determines the number of outlets. Each outlet sends out either int, float, bang, list, or symbol, depending on the arguments. If there are no arguments, there are two outlets, both of which send an int.
constant (any message) int float or symbol opt When an int, float, or symbol is specified, the value is output as a constant.

Messages

bang Causes either a bang, an integer 0, a float 0., a list 0, or an empty symbol to be sent out of each outlet.
int input [int]
The number is sent out each outlet in the form designated by the typed-in arguments: either an int, a float, a list, a symbol (although empty), or a bang.
float input [float]
The number is sent out each outlet in the form designated by the typed-in arguments: either an int, a float, a list, a symbol (although empty), or a bang.
list input [list]
The list is sent out any outlet with the letter l assigned to it. Out other outlets, the list is converted and sent out as integer 0, float 0., the empty symbol "", or bang.
anything input [list]
Anything can be output according to the format specified (same as list but interpreted as a symbol).

Information for box attributes common to all objects

Output

bang: Anything received in the inlet will be converted to bang before being sent out a b outlet.
float: A number received in the inlet is sent out each outlet, in order from right to left. The number will be converted to int, float, list, symbol, or bang before being sent out, depending on the argument that corresponds to each outlet. A symbol, list, or bang received in the inlet will be converted to integer 0 by an i outlet, and to float 0. by an f argument.
int: A number received in the inlet is sent out each outlet, in order from right to left. The number will be converted to int, float, list, symbol, or bang before being sent out, depending on the argument that corresponds to each outlet. A symbol, list, or bang received in the inlet will be converted to integer 0 by an i outlet, and to float 0. by an f argument.
list: A list received in the inlet will be sent out unchanged by an l outlet. Anything else will be converted to the single-item list 0 before being sent out.
symbol: A symbol received in the inlet will be sent out unchanged by an s outlet. Anything else will be converted to the null symbol "" before being sent out. Note: The only object that recognizes this null symbol is print, which valiantly prints the empty message in the Max window. Other objects will either ignore this null symbol or print an error message in the Max window.

Examples

Order is normally right-to-left... Any other order can be specified by trigger

See Also

Name Description
bangbang Send a bang to many places, in order
jstrigger Execute Javascript instructions sequentially
message Send any message
Max Basic Tutorial 5: Message Order and Debugging Max Basic Tutorial 5: Message Order and Debugging
Max Basic Tutorial 6: Simple Math in Max Max Basic Tutorial 6: Simple Math in Max