Using the pattrstorage object
A gesture recorder
Approaches to preset interpolation
There are a variety of techniques for preset morphing beyond sending floating point values between the integer values that identify a stored preset.
In addition to the standard linear or exponential fades, you can use a table object to define the interpolation:
This patch will fade between the current state of a preset parameter to any saved preset:
This patch demonstrates a smooth automated morph between presets
Another approach to preset interpolation makes use of a data space you can mouse around in. Here's an exquisite 4-point interpolator from mudang:
Using pattrstorage with Max for Live Devices
Gregory Taylor wrote a tutorial about adding pattr presets to a Max fro Live device:
Using pattrstorage in standalone applications
1. Add a pattrstorage object to your Max patch and give it a name (e.g. mypresets).
3. Create some presets for your standalone patch. When you save your patch, you'll be prompted to create a preset file, which will be saved as a .json file.
4. Using the pattrstorage object's Inspector set the fileusagemode attribute to 1.
5. Click on the snowflake icon in the Inspector's toolbar to freeze the attribute.
6. Using the pattrstorage object's Inspector set the savemode attribute. You want to have any changes you make in presets saved to your standalone when you quit the patch, so set the savemode attribute to 3.
7. Click on the snowflake icon in the Inspector's toolbar to freeze the attribute.
8. Using the pattrstorage object's Inspector set the autorestore attribute. You want to autorestore presets, so set the autorestore attribute to 1.
9. Click on the snowflake icon in the Inspector's toolbar to freeze the attribute.
10. Save and close your patch. A .json file (e.g. mypresets.json) will automatically be created.
11. Using the standard procedure, build a standalone and save it to a folder.
12. Open the folder, select the standalone, control-click (Macintosh ) or right-click (Windows), and choose the Show Package Contents option
13. Copy the mypresets.json file you created earlier into the Contents folder.
Gregory Taylor created a set of three video tutorials intended to get you started using pattr objects:
Matthew Davidson provides a look at the pattr objects in action as a part of the Practical Max series of video tutorials (the relevant portions start at 2:15).
Here's a tutorial in the form of a silent movie that demonstrates the use of the pattr family of Max objects with the nodes object:
And of course, the standard Max tutorial set includes two tutorials on using the pattr family of objects:
pattrstorage Tips and Workarounds
Normally, you work with the umenu as a preset by storing the index of the umenu item. If you need to be able to store and retrieve the symbol stored in the umenu, zoid constructed this elegant solution:
There are times when you may need to save floating-point number values whose resolution is beyond what Max normally stores. Several approaches are discussed in this Forum thread.
Third-Party Max externals similar to the pattrstorage object
People who looked at/used this object also looked at....
Errors or Clarifications
(please list things that you believe to be errors or omissions from the existing refpage)