pattrstorage and auto-saving presets of many instances

cip23's icon

I built a M4L MIDI device. It can and should be used in many tracks.

Now, I want to auto-save the state of the patchers when I close my Live session. I'm doing this with a pattrstorage object and a preset bound to it.

Problem is that I need a unique name (varname) for each single pattrstorage object so that presets are stored transparently when I quit live or close a session. How do I *read* the name/scripting name from a pattrstorage object (to tell the preset which pattrstorage to bind to)?

Or is there some generalized way to do this in live even without saving addtl. files to disk?

TIA,
best regards,
Christoph

cip23's icon

Doesn't work the way I intended, but just for the record: The message I was looking for is 'getname'.

Nodanoma's icon

I know this is an old post but for [pattrstorage] to save its preset data with the patch per instance automatically on not on disk (json/xml) is to set its attributes

@parameter_enable 1 (Parameter Mode Enable ON)
@paraminitmode 1 (Auto-update Parameter Initial Value ON)
and 'Initial Enable' ON

The initial preset files saved with the patch in Max will be stored with it for every new instance, albeit every new preset stored on the UI in Ableton will be part of the very device only and duplicates of the M4L-patch in a set only share the initial presets saved in Max, allowing the storage of their own presets which they save automatically and not to disk.