Namespaces

Variants
Actions

pattrstorage

From Cycling '74 Wiki
Jump to: navigation, search

Contents

pattrstorage online refpage

Using the pattrstorage object

A gesture recorder

Andrew Benson wisely noticed that you could combine recalling pattrstorage presets with timing information to create a gesture recorder. Here's his patch:

-- Pasted Max Patch, click to expand. --

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:

-- Pasted Max Patch, click to expand. --

This patch will fade between the current state of a preset parameter to any saved preset:

-- Pasted Max Patch, click to expand. --

This patch demonstrates a smooth automated morph between presets

-- Pasted Max Patch, click to expand. --

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:

-- Pasted Max Patch, click to expand. --

Using pattrstorage with Max for Live Devices

Gregory Taylor wrote a tutorial about adding pattr presets to a Max fro Live device:

+ Adding pattr presets to your Live Session

Using pattrstorage in standalone applications

1. Add a pattrstorage object to your Max patch and give it a name (e.g. mypresets).

2. Add named pattr objects to your patch for the UI objects in your patch or give the UI objects names using their Inspectors and add an autopattr object.

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.

pattrstorage Tutorials

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

While the filtergraph~ object itself isn't pattr-friendly, you can use a umenu and some flonum (floating-point number box) objects to save its state:

-- Pasted Max Patch, click to expand. --

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:

-- Pasted Max Patch, click to expand. --

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

Maxobjects.com listing for the pattrstorage object

People who looked at/used this object also looked at....

autopattr

pattr

pattrforward

pattrhub

pattrmarker

Errors or Clarifications

(please list things that you believe to be errors or omissions from the existing refpage)