Forums > MaxMSP

Pattrstorage problem with "setall" message

March 12, 2006 | 1:08 pm

Hi list,

JB wrote about pattr :

"Check the (probably undocumented — sorry) "setall" message. My notes tell me that it "manually change a path’s value at all slot numbers – does not send anything to the object" — syntax would be "setall object::path ".

I tried this fonction on MAX 4.5.5 / WINxp/PC but it didn’t work. May be I forget something… See the patch below.

Cheers, Nico.

max v2;
#N vpatcher 10 25 442 319;
#P origin 71 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 1 24 100 9109513 Storage Messages;
#P comment 1 82 100 9109513 Store & recall;
#P hidden newex 279 117 111 9109513 loadmess storagewindow;
#P hidden newex 263 149 16 9109513 t l;
#P message 4 41 63 9109513 setall v[1] 48;
#B color 2;
#P message 4 59 68 9109513 storagewindow;
#B color 2;
#P window setfont "Sans Serif" 10.;
#P message 46 100 47 9109514 store slot;
#B color 12;
#P window setfont "Sans Serif" 9.;
#P number 126 137 35 9 0 127 35 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname num[4];
#P number 86 137 35 9 0 127 35 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname num[3];
#P number 46 137 35 9 0 127 35 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname num[2];
#P number 4 137 35 9 0 127 35 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname num[1];
#P number 4 100 35 9 1 16 35 139 0 0 0 102 102 204 222 222 222 0 0 0;
#P objectname number;
#P hidden newex 196 212 83 9109513 pattrstorage TEST;
#X client_rect 15 55 655 295;
#X storage_rect 10 347 650 587;
#P objectname TEST[1];
#N vpatcher 15 55 615 455;
#P window setfont "Sans Serif" 9.;
#P newex 50 50 19 9109513 t b;
#P newex 50 71 27 9109513 i;
#P message 50 93 45 9109513 store $1;
#P inlet 32 52 15 0;
#P inlet 76 55 15 0;
#P outlet 50 115 15 0;
#P connect 1 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 0 0;
#P connect 2 0 4 1;
#P pop;
#P hidden newobj 211 177 37 9109513 p store;
#P hidden newex 4 239 79 9109513 pattr v[4] num[4];
#X prestore 1 0 20;
#P objectname v[4];
#P hidden newex 4 215 79 9109513 pattr v[3] num[3];
#X prestore 1 0 20;
#P objectname v[3];
#P hidden newex 4 192 79 9109513 pattr v[2] num[2];
#X prestore 1 0 20;
#P objectname v[2];
#P hidden newex 4 168 79 9109513 pattr v[1] num[1];
#X prestore 1 0 20;
#P objectname v[1];
#P comment 1 120 100 9109513 values to store;
#P hidden fasten 15 0 6 0 268 208 201 208;
#P hidden connect 5 0 6 0;
#P hidden fasten 7 0 5 0 9 116 216 116;
#P hidden fasten 12 0 5 1 51 116 243 116;
#P hidden fasten 7 0 15 0 9 116 268 116;
#P hidden connect 16 0 15 0;
#P hidden fasten 13 0 15 0 9 74 268 74;
#P hidden fasten 14 0 15 0 9 54 268 54;
#P pop;


March 12, 2006 | 1:31 pm

Hi Nico,

Your patch is working just fine. I can store the numbers to some slots, and
if I press the setall v[1] 48, all slots are changed. Maybe you should
update your max version. I’m using winxp max 4.5.7

Thijs


March 12, 2006 | 8:20 pm

Hi Thijs,

Thanks for your answer.

Nico.


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