Forums > MaxMSP

pattr-copying

July 3, 2006 | 10:12 am

i’m trying to learn how to use the pattr-family and want to copy the
contents of one slot of a pattstorage into another psto. the pstos are
located in bpatchers which are contained in another bpatcher. i can’t
get the pathnames to work and feel a little stupid..
could someone help me out? example patches below.
/mattias
———
save as pattrcpy-main:

max v2;
#N vpatcher 10 59 800 425;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 53 242 222 196617 store a preset here and copy to the other
one…;
#P message 53 286 310 196617 copy
pattrcpy-main::pattrcpy-sub::pattrcpy-subsub::subsub1 1 2;
#P newex 53 309 83 196617 s subsub2toPsto;
#P bpatcher 53 48 664 190 0 0 pattrcpy-sub 1;
#P objectname pattrcpy-sub;
#P window linecount 2;
#P comment 142 307 253 196617 i want to copy slot1 of pattrstorage
named subsub1psto into slot2 of pattrstorage named subsub2;
#P connect 3 0 2 0;
#P pop;
———
save as pattrcpy-sub:
max v2;
#N vpatcher 10 59 692 379;
#P bpatcher 337 33 313 125 -19 -65 pattrcpy-subsub 1 subsub2;
#P objectname pattrcpy-subsub[1];
#P bpatcher 14 33 313 125 -19 -65 pattrcpy-subsub 1 subsub1;
#P objectname pattrcpy-subsub;
#P pop;
———
save as pattrcpy-subsub:
max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 196 112 60 196617 r $1toPsto;
#P number 22 94 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 59 94 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 59 157 125 196617 autopattr @autorestore 0;
#X prestore tog1 1 0 0;
#X prestore tog2 1 0 0;
#X prestore tog3 1 0 0;
#X prestore tog4 1 0 0;
#P objectname u981000032;
#P message 111 112 78 196617 storagewindow;
#P message 59 112 49 196617 store $1;
#P toggle 110 76 15 0;
#P objectname tog4;
#P toggle 93 76 15 0;
#P objectname tog3;
#P toggle 76 76 15 0;
#P objectname tog2;
#P toggle 59 76 15 0;
#P objectname tog1;
#P newex 59 134 239 196617 pattrstorage $1psto @savemode 0 @autorestore
0;
#X client_rect 0 0 640 240;
#X storage_rect 0 0 640 240;
#P objectname $1psto;
#P connect 8 0 5 0;
#P connect 10 0 0 0;
#P connect 9 0 0 0;
#P connect 5 0 0 0;
#P connect 6 0 0 0;
#P pop;


Viewing 1 post (of 1 total)