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

patcherargs

Get parent patcher arguments

Description

patcherargs is a utility object which helps get patcher arguments and parses attribute style arguments. "normal" arguments are sent out the left outlet (first), and attribute style arguments are sent out the right outlet (second). It is useful inside abstractions, bpatchers, and subpatchers. If there are arguments present to the patcherargs object, they are assumed to be the default arguments in the instance that the parent patcher has no arguments.

Arguments

Name Type Opt Description
initializing-arguments int float symbol The patcherargs object permits access to more than 10 arguments for patchers which are typed into an object box, but those contained within a bpatcher object remain limited to 10 arguments.

Messages

bang Sends a list of the parent patcher's arguments out the left outlet.

If the parent patcher uses any attribute-style arguments (e.g. if any Jitter objects are used in the patcher), they are sent out the right outlet as a series of lists.
(mouse) Double-clicking on the object will send the parent patcher's arguments out the left outlet.

Information for box attributes common to all objects

Output

Int float symbol: Out left outlet: A list of the parent patcher's arguments are sent out the left outlet when the patcher is loaded.

Out right outlet: A series of lists corresponding to the attribute-style arguments (if any Jitter objects are contained in the patcher) are sent out the right outlet when the patcher is loaded.

Examples

See Also

Name Description
bpatcher Embed a visible subpatch inside a box
thispatcher Send messages to a patcher