Forums > MaxMSP

Saving Presets With Pattr?

August 3, 2008 | 4:43 pm

Hi, I am interested in recalling presets through pattr, but am not sure if this is even possible. I have tested it thoroughly, making sure that my preset object has a scripting name, and have connected the ‘include’ outlet of autopattr to the preset object; still no success. here is a patch to illustrate what i mean:

– Pasted Max Patch, click to expand. –

thanks for any help!


August 3, 2008 | 4:47 pm

There is a pattrstorage attribute in preset boxes inspector. You need to set that.


August 3, 2008 | 5:23 pm

On Aug 3, 2008, at 9:43 AM, Kyle Kaplan wrote:

> here is a patch to illustrate what i mean:

I think that you selected all and copied while in presentation mode,
which only copies the thing that have been added to the presentation
layer. The guts of this patch aren’t here.

-C

Chris Muir
cbm@well.com

http://www.xfade.com


August 3, 2008 | 5:42 pm

learned two new things this post :-D. thanks for help!


August 3, 2008 | 6:03 pm


August 4, 2008 | 5:59 am

i am trying to make the preset bind with a pattrstorage that is on a higher pattr level than the immediate patcher but am having trouble. that is, i have the preset object within a patch to be used as a bpatcher and would like the preset objects to be bound with the pattrstorage in the main patch that contains the bpatcher. is this possible?


August 4, 2008 | 11:05 am

Kyle Kaplan schrieb:
> i am trying to make the preset bind with a pattrstorage that is on a
> higher pattr level than the immediate patcher but am having trouble.
> that is, i have the preset object within a patch to be used as a
> bpatcher and would like the preset objects to be bound with the
> pattrstorage in the main patch that contains the bpatcher. is this
> possible?

Usually I’d put my preset objects in the highest level, but tastes are
different….

But there is a way to use a fake preset object, which only stores a fake
value. As the new preset object has this long demanded fourth outlet,
you can use that to trigger a store operation in the main pattrstorage,
and the second outlet could be used to recall…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


August 4, 2008 | 6:03 pm

thanks for the help, raja. ill look into what you advised. i still am familiarizing myself with the intricacies of the pattr world.

as to stefan, i am trying to build a kind of multi-level sequencer drum machine, where you can sequence with multisliders multiple parameters for each drum (ie, playback speed, delay, volume, rhythm, etc), and store each parameters setting within a preset. there is then a higher level sequencer that controls what preset is selected in each drum at what time. then you can mismatch the presets for each parameter for more interesting effects. anyways, point being, that i can’t have individual pattrstorage for each parameter, as that would be an excessive and cumbersome amount of files to save.


August 6, 2008 | 2:11 pm

Kyle Kaplan schrieb:
> anyways, point being, that i can’t have individual pattrstorage for
> each parameter, as that would be an excessive and cumbersome amount
> of files to save.

Yes, you can: (Assuming you mean an individual pattrstorage for each
drum…) If you automate it, and place all into a single folder, there
is not a real problem you’d face. For the user its no problem (a single
command to save) for you neither. What’s wrong with 1000 preset files,
if they are hidden somewhere in a directory?…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


August 7, 2008 | 5:01 pm

Quote: Stefan Tiedje wrote on Wed, 06 August 2008 08:11
—————————————————-
> What’s wrong with 1000 preset files,
> if they are hidden somewhere in a directory?…
>
—————————————————-

good point :-D i’ll look into this. thx for the tips.


August 10, 2008 | 10:16 pm

OK – so I ended up taking Stefan’s advice and linking the preset to pattrstorage and automating the filepaths so that the inside of each of the lowest level bpatcher has this within it:

– Pasted Max Patch, click to expand. –

when these bpatchers are tested in a patch on their own, where the directory name, seq #, & read/write are given to them as messages, they work beautifully. However, in my actual patch, these bpatchers are all nested within 3 other, higher level patches. When I go to save them, and send them all the same messages, nothing gets saved. I assume this has to do with pattr hierarchy, and somehow the information in these bpatchers gets overriden by the autopattr in higher level patches.

I have tried to uncheck the bpatchers from the client window/storage window, i have tried connecting the exclude patch from autopattr in higher level patches. still, no success.

i do get the right xml files created in the right directory, but they are all blank. why would they be blank?? what could cause this???

i would deeply appreciate any help as this is something ive been struggling greatly and fruitlessly with and would dearly like to understand.


August 11, 2008 | 4:42 am

nvm. was sending the store message to the preset object but not to pattr. ugh. the simplest things are often the easiest to overlook.


August 15, 2008 | 10:52 am

hello,

why cant i see any of the example files mentioned in this forum…all i get is alot of the following::

———-begin_max5_patcher———-
1551.3oc0as0aiZDE9YmeEHZenUx0dtvvk9TiTeckhZ19TTTD1dpWZwfKf2j
zU6+8xbACwlKSvvXhzJXYlwv47MmKeyYl7salYtJ9EZpowuZ7fwrYe6lYy3M
wZXl74Yl67eYcneJeXl6noo9aolyE8kQeIi29hW1EVz3d+r0eIHZ6SIz0YhW
NzB.V.laXgHraXzBxbCn8BfwixezeEGkkF7eT13grwJZN9PVHMK608TwKxz7
3uHXC+KGu5u+EKGyJulH+c7QadaRf+QoJ5vtfn72EWOPkMJ9B7VgrF+9M2vt
LWQ.Ih9btDbFdjlkr1OqMDA6vgBKBGXv1rqP2ACQbuZHB+cphlKLIDVDrqG0
CEUQuZUDP8Jhr00w61QiDyQ2S+WievTmy4HOtJ6fDy4jgcNm.mZdAYFqZCN.
DQz.wMDp2vwJ+ns0BId32Ij.GLHooHknVQDgAhEYTBS5gtZFHMgFPErOFKzX
x4tr0OiZzt8gq.QDlIX29G.YdCnhq2ffJngCU1mP2Si1XjP82zB13IBmZIRt

This post seems to contain a broken pasted patch. This can happen if you don’t copy the entire "———-begin_max5_patcher———-" or "———–end_max5_patcher———–" for each and every patch you paste; perhaps you missed a preceding or trailing "-" when you copied the patch? Please notify the Cycling 74 web team if you think it is a bug.


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