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

patcherargs Reference

Retrieve patcher arguments

patcherargs

Description

Retrieves 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).

Examples

Discussion

This object 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

defaults [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.

Attributes

Common Box Attributes

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.

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.

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.

See Also

Name Description
Sharing Max Patchers Sharing Max Patchers
Organizing Your Patch Organizing Your Patch
bpatcher
thispatcher