pattr

Store and output data with pattr

This example shows how to store and output data using the pattr object. Whatever data is sent into a pattr object will be saved with the patch and will output on load unless the ‘thru’ attribute is disabled as shown in the lower portion of the example. The initial value of pattr can also be set using the ‘initial’ attribute.

Ganging sliders

This example shows how you can create a gangable multislider-like object. Although it is a common idea used in, for example, digital mixing consoles, there's no single object in Max yet to achieve this task of "ganging" multiple faders.

Activate and deactivate parameters for pattrstorage

This example shows how you can ignore certain preset parameters in pattrstorage. The active message followed by the parameter name and a 0, allows you to deactivate that parameter and, consequently, all the preset interpolation associated with it. In this example, whenever you select particular preset 2, it deactivates the parameter, and then reactivates it for other presets.

Saving slider values

There are several ways to initialize UI objects, but the data is not stored with the object itself (except for the Live objects). Triggering an initializing message to the object with loadbang is one way. See also loadmess, patcherargs, and pattr.