Forums > MaxMSP

Storing file paths and lists with [pattr] and [pattrstorage]

Jul 22 2011 | 6:50 pm

I am currently learning how to use [pattrstorage] and [pattr] objects to save and load settings in my Max patches.
I have got it working fine with number boxes and umenu’s, but I have now hit a brick wall. I have two questions:

1. How can I store file paths of audio files in buffer~ objects using pattr?
2. How can I store lists of numbers using pattr?


Jul 22 2011 | 8:22 pm

1) you should be able to store filepaths in umenu, check "Pattr Stores Symbol" in the umenu Inspector. populate the umenu with filepaths, being sure the path is a single symbol (maybe need [tosymbol]).

2) lists can be stored with multislider, matrixctrl, table, etc… so if you make your list some other way, put it in one of these pattr-able objects (even if it’s just a dummy placeholder, you can hide it). multislider is the easiest for this.


Jul 24 2011 | 9:28 am

You don’t need objects beside pattr to store pathes or list:

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


Jul 24 2011 | 6:07 pm

Ahh thats very useful thanks Patrick.
I wasn’t aware you could use the [pattr] object like that.
In the end I just routed any file path names and lists into [textedit] objects which were then attached the [pattr] objects through the ‘bindto connection’ outlet.
Is there a reason why I should choose one of those methods over the other?

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP