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

combine Reference

Combine multiple items into a single symbol

combine

Description

Combines a list of items into a single symbol. It works similar to pack and sprintf. The behavior can be modified with attributes that provide number padding and triggered output.

Examples

Arguments

inlets [anything]

Optional

The number of inlets is determined by the number of arguments. Each argument sets an initial type and value for an item in the list stored by the combine object. If a number argument contains a decimal point, that item will be stored as a float. If the argument is a symbol, that item will be stored as a symbol.

Attributes

padding [256 ints]

A list that determines the number of zeros to add to a number if appropriate.

triggers [256 ints]

Define a list of inputs that will automatically trigger output (i.e. adding an input to this list will make the inlet "hot"). Setting the attribute value to -1 will cause the object to trigger output for any inlet (all inlets will be "hot").

Common Box Attributes

Messages

bang

Causes combine to send out a list of the items currently stored.

int

Arguments

input [int]
The number is stored in combine as an item in a list, with its position in the list corresponding to the inlet in which it was received. The combined output is then generated from this list and sent out the outlet.

float

Arguments

input [float]
The number is stored in combine as an item in a list, with its position in the list corresponding to the inlet in which it was received. The combined output is then generated from this list and sent out the outlet.

list

Arguments

input [list]
When a list is sent into any inlet of the combine object, each item in the list is converted to symbols and stored. Its position in the list corresponds to the inlet in which it was received. If the list is sent to the left inlet, the combined output is then generated and sent out the outlet.

anything

Arguments

input [list]
The symbol is stored in combine as an item in a list, with its position in the list corresponding to the inlet in which it was received. The combined output is then generated from this list and sent out the outlet.

See Also

Name Description
join
pack
pak
sprintf
transport