Pattrstorage in subpatches OK, can't get to work in main patch

Mar 10, 2007 at 9:37pm

Pattrstorage in subpatches OK, can't get to work in main patch

In the patch below I have individual autopattr that store a subpatches
values as a preset. This works within the subpatch and “sort of” from the
main patch. I’ve tried to set up a autopattr in the main patch to remember
different combinations of the subpatch settings. I can’t get this to work
properly.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 40 26 62 196617 prepend set;
#P newex 239 26 62 196617 prepend set;
#P window setfont Times 10.;
#P comment 711 138 63 1310730 recall a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 674 140 35 10 0 0 1 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 604 68 61 1310730 store a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 621 90 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 605 91 16 0;
#P newex 604 114 27 1441802 i;
#P message 604 139 53 1441802 store $1;
#P window setfont “Sans Serif” 9.;
#P newex 604 179 94 196617 pattrstorage great;
#X client_rect 10 59 650 299;
#X storage_rect 0 0 640 240;
#P objectname great;
#P newex 462 96 104 196617 autopattr Everything;
#X prestore presetboxSet2 1 0 1;
#X prestore presetboxset1 1 0 1;
#P objectname Everything;
#P number 239 52 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname presetboxSet2;
#P number 40 52 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname presetboxset1;
#P message 305 195 50 196617 9;
#P newex 305 166 62 196617 prepend set;
#P message 281 195 50 196617 9;
#P newex 281 166 62 196617 prepend set;
#P message 261 195 50 196617 9;
#P newex 261 166 62 196617 prepend set;
#P message 239 195 50 196617 9;
#P newex 239 166 62 196617 prepend set;
#P newex 239 140 76 196617 unpack 0 0 0 0;
#N vpatcher 636 103 1041 452;
#P outlet 128 294 15 0;
#P inlet 248 29 15 0;
#P window setfont Times 10.;
#P comment 165 215 63 1310730 recall a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 128 215 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 58 145 61 1310730 store a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 75 167 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 59 168 16 0;
#P newex 58 191 27 1441802 i;
#P message 58 216 53 1441802 store $1;
#P window setfont “Sans Serif” 9.;
#P newex 58 256 92 196617 pattrstorage yup1;
#X client_rect 30 89 670 329;
#X storage_rect 0 0 640 240;
#P objectname yup1;
#P newex 279 130 76 196617 autopattr Set2;
#X prestore boxA 1 0 9;
#X prestore boxB 1 0 9;
#X prestore boxC 1 0 9;
#X prestore boxD 1 0 9;
#P objectname Set2;
#P number 161 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxD;
#P number 124 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxC;
#P number 87 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxB;
#P number 50 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxA;
#P newex 50 88 73 196617 pak 0. 0. 0. 0.;
#P outlet 51 295 15 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P connect 10 0 9 0;
#P connect 9 0 8 0;
#P connect 13 0 7 0;
#P connect 8 0 7 0;
#P connect 3 0 1 1;
#P connect 11 0 9 1;
#P connect 4 0 1 2;
#P connect 5 0 1 3;
#P connect 15 0 13 0;
#P connect 13 0 16 0;
#P pop 1;
#P newobj 239 103 39 196617 p Set2;
#P objectname Set2;
#P message 106 195 50 196617 1;
#P newex 106 166 62 196617 prepend set;
#P message 82 195 50 196617 1;
#P newex 82 166 62 196617 prepend set;
#P message 62 195 50 196617 1;
#P newex 62 166 62 196617 prepend set;
#P message 40 195 50 196617 1;
#P newex 40 166 62 196617 prepend set;
#P newex 40 140 76 196617 unpack 0 0 0 0;
#N vpatcher 164 521 591 867;
#P outlet 127 310 15 0;
#P inlet 247 32 15 0;
#P window setfont Times 10.;
#P window linecount 1;
#P comment 165 215 63 1310730 recall a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 128 215 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 58 145 61 1310730 store a preset;
#P window setfont “Fixedwidth Serif” 10.;
#P number 75 167 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 59 168 16 0;
#P newex 58 191 27 1441802 i;
#P message 58 216 53 1441802 store $1;
#P window setfont “Sans Serif” 9.;
#P newex 58 256 92 196617 pattrstorage yup1;
#X client_rect 30 89 670 329;
#X storage_rect 0 0 640 240;
#P objectname yup1;
#P newex 279 130 79 196617 autopattr Set1;
#X prestore boxA 1 0 1;
#X prestore boxB 1 0 1;
#X prestore boxC 1 0 1;
#X prestore boxD 1 0 1;
#P objectname Set1;
#P number 161 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxD;
#P number 124 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxC;
#P number 87 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxB;
#P number 50 53 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname boxA;
#P newex 50 88 73 196617 pak 0. 0. 0. 0.;
#P outlet 50 309 15 0;
#P connect 2 0 1 0;
#P connect 1 0 0 0;
#P connect 10 0 9 0;
#P connect 9 0 8 0;
#P connect 13 0 7 0;
#P connect 8 0 7 0;
#P connect 3 0 1 1;
#P connect 11 0 9 1;
#P connect 4 0 1 2;
#P connect 5 0 1 3;
#P connect 13 0 16 0;
#P connect 15 0 13 0;
#P pop;
#P newobj 40 103 39 196617 p Set1;
#P objectname Set1;
#P comment 99 53 112 196617 recall a preset 1 or 2;
#P window linecount 2;
#P comment 299 263 192 196617 Doesn’t work if you add additional presets to
Set1 or Set2;
#P connect 22 0 2 0;
#P connect 23 0 12 0;
#P connect 31 0 25 0;
#P connect 2 1 34 0;
#P connect 34 0 22 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 3 1 6 0;
#P connect 6 0 7 0;
#P connect 3 2 8 0;
#P connect 8 0 9 0;
#P connect 3 3 10 0;
#P connect 10 0 11 0;
#P connect 12 1 33 0;
#P connect 33 0 23 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P connect 13 1 16 0;
#P connect 16 0 17 0;
#P connect 13 2 18 0;
#P connect 18 0 19 0;
#P connect 13 3 20 0;
#P connect 20 0 21 0;
#P connect 28 0 27 0;
#P connect 27 0 26 0;
#P connect 26 0 25 0;
#P connect 29 0 27 1;
#P window clipboard copycount 35;

#30739
Mar 11, 2007 at 11:55am

You’re going to need to be a lot clearer about what “not working”
means. I just tested your patch is it _does_ work, at least as far as
I understand it.

1. Make some presets in Set1 and Set2
2. Store some meta-presets in the master patch (arrangements of Set1
and Set2)
3. Recall. It works fine.

You don’t actually need the autopattr, since the pattrstorage
automatically sees the child pattrstorage objects and lets you change
their value (the preset they are currently recalling).

If I’m misunderstanding the problem, feel free to let us know, but
try to be more precise in your description, so that I know what to
look for.

Thanks
Jeremy

Am 10.03.2007 um 22:37 schrieb Dave Leith:

> In the patch below I have individual autopattr that store a subpatches
> values as a preset. This works within the subpatch and “sort of”
> from the
> main patch. I’ve tried to set up a autopattr in the main patch to
> remember
> different combinations of the subpatch settings. I can’t get this
> to work
> properly.

#98780
Mar 11, 2007 at 10:22pm

Thanks Jeremy

Sorry about the loose explanation. WIth the sample patch I was having some
problems with restoring all values after I closed/saved, then re-opened the
main patch. It does seem OK now with the main patch greedy =1, the
savestorage left at the default. However in my actual working Jitter patch
it needed the autorestore=1 in the subpatches to recall both the sub and
meta presets. (subpatches xml files would get saved but not restored)

Any other suggestions as to a better way to do this is much appreciated.

Things did get a little confused/crazy in my “actual” patch (Jitter patch)
when pattrstorage/autopattr/ attributes were changed causing wrong formats
in the .xml files. This resulted (I believe) in patch blowups where objects
disappeared and new objects appeared. Fingers crossed but so far so good.

On 3/11/07, Jeremy Bernstein wrote:
>
> You’re going to need to be a lot clearer about what “not working”
> means. I just tested your patch is it _does_ work, at least as far as
> I understand it.
>
> 1. Make some presets in Set1 and Set2
> 2. Store some meta-presets in the master patch (arrangements of Set1
> and Set2)
> 3. Recall. It works fine.
>
> You don’t actually need the autopattr, since the pattrstorage
> automatically sees the child pattrstorage objects and lets you change
> their value (the preset they are currently recalling).
>
> If I’m misunderstanding the problem, feel free to let us know, but
> try to be more precise in your description, so that I know what to
> look for.
>
> Thanks
> Jeremy
>
> Am 10.03.2007 um 22:37 schrieb Dave Leith:
>
> > In the patch below I have individual autopattr that store a subpatches
> > values as a preset. This works within the subpatch and “sort of”
> > from the
> > main patch. I’ve tried to set up a autopattr in the main patch to
> > remember
> > different combinations of the subpatch settings. I can’t get this
> > to work
> > properly.
>
>

#98781
Mar 13, 2007 at 11:11am

#98782
Mar 13, 2007 at 5:45pm

#98783

You must be logged in to reply to this topic.