Saving presets between patchers?

Paul Malinowski's icon

Hey everyone, hope you're all good :)

I'm developing a substractive synth and each oscillator, effect and filter is a seperate file bpatch'd into one main file. What i want to do is be able to save user presets of all the dial and settings.

In each patcher (osc or effect etc) i have a PATTRSTORAGE (with a unique name for each patcher), an AUTOPATTR and a PRESET object. All relevant elements have been giving unique scripting names.

On the main presentation, I have my main preset box (as well as an AUTOPATTR and PATTRSTORAGE), so how do I get the info from each patcher and save a preset covering every patcher's settings in the main file? I could associate the main preset's pattrstorage attribute but to what? I need one preset / pattr to save all the rest. How can i do this please?

Paul..

thispatcher's icon

Hi Paul! Check out the pattrmarker.maxhelp file!

Paul Malinowski's icon

Hey Michael, thanks for you reply. I'll look into pattrmarker :)

I'm just at a loss to what components i need in each file. In the main maxpat file what do i need? Just an autopattr, pattrstorage and pattrmarker? What about in each bpatcher file?

Thanks,

Paul..

thispatcher's icon

Hi Paul. Have you checked out the reference file for each of the objects you described? Try experimenting with the different object attributes, as well as the different messages you can send to each object.

i.e. for [pattrstorage]:
clientwindow
insert
store [int]
recall [int]
etc...

pattrstorage-messages.jpg
jpg
Paul Malinowski's icon

Hey Michael, hope you're ok.

Right i think i have it :) Just using autopattr objects in each seperate patcher and a pattrstorage in the main patcher.

This works using 2 messages for each "preset" saved - one for storing, one for recalling and works as i wanted it so thank you :)

Although i'd rather use a PRESET object to act as the UI. In the preset.maxhelp file, it shows how to use a preset object with the pattrstorage but despite copying everything it shows, I can't get it to work. Any ideas why? I presume they are still compatible together?

Paul Malinowski's icon

Sorry, my bad - i hadn't pointed the preset to the pattrstorage.

Yay, it works. The only issue is that in the max console window, everytime i recall a preset, it states that the preset object does not understand recall - but it works anyway so i'm happy :)

thispatcher's icon

Hey Paul, that's great, congrats! Do you mind posting your patch (or part of it) so we can see what you did? Cheers!