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

Jul 22, 2011 at 6:50pm

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

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 at 8:22pm

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 at 9:28am

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

– Pasted Max Patch, click to expand. –


Jul 24, 2011 at 6:07pm

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?


You must be logged in to reply to this topic.