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

pak Reference

Output a list when any element changes

pak

Description

The pak object (pronounced "pock") offers much of the functionality of pack, but outputs the entire list whenever input is received in any inlet.

Examples

Arguments

list-elements [any]

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 produced by pak. If there are no arguments, the object will be created with two inlets, and the two list elements will be set to (int) 0 initially.

Attributes

Common Box Attributes

Messages

bang

Output currently stored list

int

Arguments

input [int]
The number is stored as an item in a list, with its position in the list corresponding to the inlet in which it was received, then the entire list is output. If the inlet has been initialized with a float or symbol argument, the incoming number will be converted to a float or a blank symbol.

float

Arguments

input [float]
The number is stored as an item in a list, with its position in the list corresponding to the inlet in which it was received, then the entire list is output. If the inlet has been initialized with an int or symbol argument, the incoming number will be converted to an int or a (blank) symbol.

list

Arguments

input [list]
Any multi-item message is treated as a list. The first item in the incoming list is stored in in the location that corresponds to the inlet in which it was received. Each subsequent item is stored as if it had arrived in subsequent inlets (limited to the number of inlets available). After all values are stored, the list is output.

anything

Arguments

input [list]
Performs the same function as list.

set

Arguments

message [list]
Set data without output

Output

list

The length of the list is determined by the number of arguments. When input is received in any inlet, the stored list is sent out the outlet.

See Also

Name Description
bondo
buddy
join
match
swap
thresh
unjoin
unpack
zl
Tutorial 3: Math Operations on a Matrix Tutorial 3: Math Operations on a Matrix