pattr priority : not expected behavior

Dec 31, 2007 at 1:12am

pattr priority : not expected behavior

Hello,

I have a simple patch with seven [pattr] connected to numboxes, and these numboxes each connected to a [pack i i i i i i i].

So I need the pattr to be recalled right to left and to do that I use the “priority” message to pattrstorage.

The problem is though numboxes are recalled in a good way, it seems the [pack i i i i i i i] delays data or something inexpected and the result is absolutely wrong.

You can see that by yourself in Max win.
Please tell what do you think about this very strange behavior.

Thank you very much.

max v2;
#N vpatcher 10 59 731 804;
#P origin 0 -13;
#P button 585 672 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 599 692 32 196617 t 2 2;
#P window setfont “Sans Serif” 18.;
#P window linecount 6;
#P comment 325 527 346 196626 I want the numboxes to be recalled right to left , and hoped to do that with priority message. Is recalling two times the preset is the only way to have my list packed ?;
#P window linecount 2;
#P comment 344 441 220 196626 but 8 look at max win : WHAT’S the MATTER ??;
#P window linecount 1;
#P comment 344 407 272 196626 7 look at the numbox : it’s ok;
#P window setfont “Sans Serif” 9.;
#P message 595 110 14 196617 2;
#P message 586 84 14 196617 1;
#P window setfont “Sans Serif” 18.;
#P comment 610 107 20 196626 6;
#P comment 604 77 20 196626 5;
#P window setfont “Sans Serif” 9.;
#P newex 32 238 60 196617 loadmess 1;
#P message 515 123 14 196617 2;
#P window setfont “Sans Serif” 18.;
#P comment 530 119 20 196626 4;
#P comment 109 122 20 196626 3;
#P window setfont “Sans Serif” 9.;
#P message 495 97 14 196617 1;
#P window setfont “Sans Serif” 18.;
#P comment 469 96 20 196626 2;
#P comment 82 83 20 196626 1;
#P window setfont “Sans Serif” 9.;
#P newex 51 266 98 196617 print LefToRiBoRGB;
#P newex 171 287 49 196617 print Lef;
#P objectname Lef[1];
#P newex 222 287 46 196617 print To;
#P objectname To[1];
#P newex 270 287 44 196617 print Ri;
#P objectname Ri[1];
#P newex 316 287 46 196617 print Bo;
#P objectname Bo[1];
#P newex 364 287 41 196617 print R;
#P objectname R[1];
#P newex 408 287 41 196617 print G;
#P objectname G[1];
#P newex 452 287 41 196617 print B;
#P objectname B[1];
#P toggle 32 285 15 0;
#P newex 32 305 58 196617 metro 100;
#P newex 390 21 48 196617 loadbang;
#P newex 390 62 120 196617 sprintf priority %s %ld;
#P message 390 44 196 196617 Lef 6 , To 7 , Ri 8 , Bo 9 , R 10 , G 11 , B 12;
#P flonum 590 149 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 495 170 49 196617 store $1;
#P number 495 151 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 546 211 78 196617 storagewindow;
#P newex 485 235 67 196617 pattrstorage;
#X priority Lef 6;
#X priority To 7;
#X priority Ri 8;
#X priority Bo 9;
#X priority R 10;
#X priority G 11;
#X priority B 12;
#X client_rect 43 560 683 800;
#X storage_rect 747 594 1091 782;
#P objectname u274000002;
#P message 129 126 175 196617 200 200 200 200 200 200 200 200;
#P message 103 89 154 196617 100 100 100 100 100 100 100;
#P button 94 306 15 0;
#P message 15 405 263 196617 200 100 100 100 100 100 100;
#P newex 15 384 62 196617 prepend set;
#P newex 140 365 50 196617 print reg;
#P newex 92 190 50 196617 pattr Lef;
#X prestore 1 0 200;
#P objectname Lef;
#P newex 143 190 47 196617 pattr To;
#X prestore 1 0 200;
#P objectname To;
#P newex 191 190 45 196617 pattr Ri;
#X prestore 1 0 200;
#P objectname Ri;
#P newex 237 190 47 196617 pattr Bo;
#X prestore 1 0 200;
#P objectname Bo;
#P newex 285 190 42 196617 pattr R;
#X prestore 1 0 200;
#P objectname R;
#P newex 329 190 42 196617 pattr G;
#X prestore 1 0 200;
#P objectname G;
#P newex 373 190 42 196617 pattr B;
#X prestore 1 0 200;
#P objectname B;
#P number 355 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P newex 138 238 228 196617 pack i i i i i i i;
#P number 318 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 282 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[2];
#P number 246 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[3];
#P number 210 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[4];
#P number 174 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[5];
#P number 138 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[6];
#P newex 138 149 229 196617 unpack i i i i i i i;
#P newex 113 336 36 196617 zl reg;
#P comment 591 168 36 196617 recall;
#P window setfont “Sans Serif” 18.;
#P comment 45 39 124 196626 do that :;
#P fasten 2 0 20 0 118 374 20 374;
#P connect 20 0 21 0;
#P connect 49 0 34 0;
#P connect 34 0 33 0;
#P fasten 10 0 42 0 143 260 56 260;
#P fasten 33 0 2 0 37 329 118 329;
#P fasten 22 0 2 0 99 328 118 328;
#P connect 23 0 3 0;
#P connect 24 0 3 0;
#P connect 18 1 4 0;
#P connect 3 0 4 0;
#P connect 4 0 10 0;
#P connect 10 0 2 1;
#P connect 2 0 19 0;
#P connect 4 0 41 0;
#P connect 17 1 5 0;
#P connect 3 1 5 0;
#P connect 5 0 10 1;
#P connect 16 1 6 0;
#P connect 3 2 6 0;
#P connect 6 0 10 2;
#P connect 5 0 40 0;
#P connect 15 1 7 0;
#P connect 3 3 7 0;
#P connect 7 0 10 3;
#P connect 6 0 39 0;
#P connect 14 1 8 0;
#P connect 3 4 8 0;
#P connect 8 0 10 4;
#P connect 7 0 38 0;
#P connect 13 1 9 0;
#P connect 3 5 9 0;
#P connect 9 0 10 5;
#P connect 11 0 10 6;
#P connect 12 1 11 0;
#P connect 3 6 11 0;
#P connect 8 0 37 0;
#P connect 32 0 30 0;
#P connect 30 0 31 0;
#P connect 9 0 36 0;
#P connect 11 0 35 0;
#P connect 31 0 25 0;
#P connect 26 0 25 0;
#P connect 28 0 25 0;
#P connect 29 0 25 0;
#P connect 45 0 27 0;
#P connect 48 0 27 0;
#P connect 27 0 28 0;
#P fasten 57 0 29 0 690 334 637 281 677 133 595 133;
#P fasten 57 1 29 0 688 371 623 281 668 151 655 138;
#P connect 52 0 29 0;
#P connect 53 0 29 0;
#P connect 58 0 57 0;
#P pop;

#35161
Dec 31, 2007 at 7:58am

without claiming to understand that behaviour, a simple “buddy 7″
between the numbernboxes and the pack seems to cure it.

smooth transition into the 08 realm for everyone around
hans

hans w. koch
im krahnenhof 11
d-50668 koeln
+49-221-554902
http://www.hans-w-koch.net

Am 31.12.2007 um 02:12 schrieb Derrick Giscloux:

>
> Hello,
>
> I have a simple patch with seven [pattr] connected to numboxes, and
> these numboxes each connected to a [pack i i i i i i i].
>
> So I need the pattr to be recalled right to left and to do that I
> use the “priority” message to pattrstorage.
>
> The problem is though numboxes are recalled in a good way, it seems
> the [pack i i i i i i i] delays data or something inexpected and the
> result is absolutely wrong.
>
> You can see that by yourself in Max win.
> Please tell what do you think about this very strange behavior.
>
> Thank you very much.
>
>
> max v2;
> #N vpatcher 10 59 731 804;
> #P origin 0 -13;
> #P button 585 672 15 0;
> #P window setfont “Sans Serif” 9.;
> #P newex 599 692 32 196617 t 2 2;
> #P window setfont “Sans Serif” 18.;
> #P window linecount 6;
> #P comment 325 527 346 196626 I want the numboxes to be recalled
> right to left , and hoped to do that with priority message. Is
> recalling two times the preset is the only way to have my list
> packed ?;
> #P window linecount 2;
> #P comment 344 441 220 196626 but 8 look at max win : WHAT’S the
> MATTER ??;
> #P window linecount 1;
> #P comment 344 407 272 196626 7 look at the numbox : it’s ok;
> #P window setfont “Sans Serif” 9.;
> #P message 595 110 14 196617 2;
> #P message 586 84 14 196617 1;
> #P window setfont “Sans Serif” 18.;
> #P comment 610 107 20 196626 6;
> #P comment 604 77 20 196626 5;
> #P window setfont “Sans Serif” 9.;
> #P newex 32 238 60 196617 loadmess 1;
> #P message 515 123 14 196617 2;
> #P window setfont “Sans Serif” 18.;
> #P comment 530 119 20 196626 4;
> #P comment 109 122 20 196626 3;
> #P window setfont “Sans Serif” 9.;
> #P message 495 97 14 196617 1;
> #P window setfont “Sans Serif” 18.;
> #P comment 469 96 20 196626 2;
> #P comment 82 83 20 196626 1;
> #P window setfont “Sans Serif” 9.;
> #P newex 51 266 98 196617 print LefToRiBoRGB;
> #P newex 171 287 49 196617 print Lef;
> #P objectname Lef[1];
> #P newex 222 287 46 196617 print To;
> #P objectname To[1];
> #P newex 270 287 44 196617 print Ri;
> #P objectname Ri[1];
> #P newex 316 287 46 196617 print Bo;
> #P objectname Bo[1];
> #P newex 364 287 41 196617 print R;
> #P objectname R[1];
> #P newex 408 287 41 196617 print G;
> #P objectname G[1];
> #P newex 452 287 41 196617 print B;
> #P objectname B[1];
> #P toggle 32 285 15 0;
> #P newex 32 305 58 196617 metro 100;
> #P newex 390 21 48 196617 loadbang;
> #P newex 390 62 120 196617 sprintf priority %s %ld;
> #P message 390 44 196 196617 Lef 6 , To 7 , Ri 8 , Bo 9 , R 10
> , G 11 , B 12;
> #P flonum 590 149 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 495 170 49 196617 store $1;
> #P number 495 151 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 546 211 78 196617 storagewindow;
> #P newex 485 235 67 196617 pattrstorage;
> #X priority Lef 6;
> #X priority To 7;
> #X priority Ri 8;
> #X priority Bo 9;
> #X priority R 10;
> #X priority G 11;
> #X priority B 12;
> #X client_rect 43 560 683 800;
> #X storage_rect 747 594 1091 782;
> #P objectname u274000002;
> #P message 129 126 175 196617 200 200 200 200 200 200 200 200;
> #P message 103 89 154 196617 100 100 100 100 100 100 100;
> #P button 94 306 15 0;
> #P message 15 405 263 196617 200 100 100 100 100 100 100;
> #P newex 15 384 62 196617 prepend set;
> #P newex 140 365 50 196617 print reg;
> #P newex 92 190 50 196617 pattr Lef;
> #X prestore 1 0 200;
> #P objectname Lef;
> #P newex 143 190 47 196617 pattr To;
> #X prestore 1 0 200;
> #P objectname To;
> #P newex 191 190 45 196617 pattr Ri;
> #X prestore 1 0 200;
> #P objectname Ri;
> #P newex 237 190 47 196617 pattr Bo;
> #X prestore 1 0 200;
> #P objectname Bo;
> #P newex 285 190 42 196617 pattr R;
> #X prestore 1 0 200;
> #P objectname R;
> #P newex 329 190 42 196617 pattr G;
> #X prestore 1 0 200;
> #P objectname G;
> #P newex 373 190 42 196617 pattr B;
> #X prestore 1 0 200;
> #P objectname B;
> #P number 355 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number;
> #P newex 138 238 228 196617 pack i i i i i i i;
> #P number 318 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[1];
> #P number 282 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[2];
> #P number 246 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[3];
> #P number 210 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[4];
> #P number 174 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[5];
> #P number 138 218 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname number[6];
> #P newex 138 149 229 196617 unpack i i i i i i i;
> #P newex 113 336 36 196617 zl reg;
> #P comment 591 168 36 196617 recall;
> #P window setfont “Sans Serif” 18.;
> #P comment 45 39 124 196626 do that :;
> #P fasten 2 0 20 0 118 374 20 374;
> #P connect 20 0 21 0;
> #P connect 49 0 34 0;
> #P connect 34 0 33 0;
> #P fasten 10 0 42 0 143 260 56 260;
> #P fasten 33 0 2 0 37 329 118 329;
> #P fasten 22 0 2 0 99 328 118 328;
> #P connect 23 0 3 0;
> #P connect 24 0 3 0;
> #P connect 18 1 4 0;
> #P connect 3 0 4 0;
> #P connect 4 0 10 0;
> #P connect 10 0 2 1;
> #P connect 2 0 19 0;
> #P connect 4 0 41 0;
> #P connect 17 1 5 0;
> #P connect 3 1 5 0;
> #P connect 5 0 10 1;
> #P connect 16 1 6 0;
> #P connect 3 2 6 0;
> #P connect 6 0 10 2;
> #P connect 5 0 40 0;
> #P connect 15 1 7 0;
> #P connect 3 3 7 0;
> #P connect 7 0 10 3;
> #P connect 6 0 39 0;
> #P connect 14 1 8 0;
> #P connect 3 4 8 0;
> #P connect 8 0 10 4;
> #P connect 7 0 38 0;
> #P connect 13 1 9 0;
> #P connect 3 5 9 0;
> #P connect 9 0 10 5;
> #P connect 11 0 10 6;
> #P connect 12 1 11 0;
> #P connect 3 6 11 0;
> #P connect 8 0 37 0;
> #P connect 32 0 30 0;
> #P connect 30 0 31 0;
> #P connect 9 0 36 0;
> #P connect 11 0 35 0;
> #P connect 31 0 25 0;
> #P connect 26 0 25 0;
> #P connect 28 0 25 0;
> #P connect 29 0 25 0;
> #P connect 45 0 27 0;
> #P connect 48 0 27 0;
> #P connect 27 0 28 0;
> #P fasten 57 0 29 0 690 334 637 281 677 133 595 133;
> #P fasten 57 1 29 0 688 371 623 281 668 151 655 138;
> #P connect 52 0 29 0;
> #P connect 53 0 29 0;
> #P connect 58 0 57 0;
> #P pop;
>

#119459
Dec 31, 2007 at 9:07am

#119460
Dec 31, 2007 at 10:07am

Yes, I realized my priority were inverted few minutes after.

#119461

You must be logged in to reply to this topic.