How do I deal with multiple pattrstorages ...

davidestevens's icon

I'm banging up against my limited understanding of the pattrstorage world...

I'm using pattrstorage at the top level of my patch to store all the settings exposed to autopattrs in each of the sub patchers. That's all ok.

I"ve just built 4 wavetable synth sub patchers which use the pattrstorage method of interpolating between waves, and it works very nicely! So there's a pattrstorage at the subpatcher level that stores the values in a couple of multisliders that represent the waveforms. I also need to store a few other settings, but not with the waveform values in the local pattrstorage. If i put an autopattr in the subpatcher it shows up in the local rather than the top level pattrstorage. Is there a way around this? Would it involve pattrforward?

Top level - pattrstorage
--subpatcher (all synths/samplers etc) - autopattr
----subsubpatcher (synth) - hoping I can put autopattr here but haven't tried it yet
------subsubsubpatcher (waveform creation/storage/interpolation) - local pattrstorage for waveform storage; also need to store other controls at top level of patch.

davidestevens's icon

Hmm. Well, this is what I came up with, and it seems to work. pattrmarker turned out to be what I wanted...

Max Patch
Copy patch and select New From Clipboard in Max.

subpatcher (name -> lowlevel)

Max Patch
Copy patch and select New From Clipboard in Max.

main patch (name -> toplevel)

dnk777's icon

nice feature of pattrstorage is also the subscription mode, which allows you to have two pattrstorages on one level, and subscribe some of the "pattr" objects to one pattrstorage and the rest to the other pattrstorage. (not sure how this goes together with autopattr as i never used that)