Forums > MaxMSP

pattr + buddy + pack = strangeness

June 16, 2006 | 2:24 am

I have an example patcher that I was wondering if someone
could look at. Basically I have a some pattrs that connect
to some parent ubu menus. If you set these ubu menus
to values ,it will send them to a buddy and finally to a pack.

The problem is, pack never spits out the right values.
Does anyone have any idea what might be causing this
strange behavior?

Anthony

#P window setfont "Sans Serif" 9.;
#P user ubumenu 339 134 33 9109513 0 1 1 0;
#X add 1;
#X add 2;
#X add 3;
#X add 4;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P objectname u3;
#P user ubumenu 302 134 34 9109513 0 1 1 0;
#X add 1;
#X add 2;
#X add 3;
#X add 4;
#X prefix_set 0 0
0;
#X pattrmode 1;
#P objectname u2;
#P user ubumenu 263 134 34 9109513 0 1 1 0;
#X add 1;
#X add 2;
#X add 3;
#X add 4;
#X prefix_set 0 0
0;
#P objectname u1;
#P window linecount 1;
#N vpatcher 286 110 940 566;
#P window setfont "Sans Serif" 9.;
#P number 406 73 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N vpatcher 15 55 615 455;
#P outlet 97 236 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 97 196 40 9109513 pattr;
#X prestore 1 0 1;
#P objectname u459000007;
#P newex 97 166 143 9109513 sprintf bindto parent::parent::%s;
#P newex 98 132 54 9109513 unpack s s;
#P newex 98 56 45 9109513 loadbang;
#P newex 98 105 57 9109513 patcherargs;
#P fasten 2 1 3 0 147 160 102 160;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 285 102 69 9109513 p pattr_test u3;
#P objectname voice_param[2];
#N vpatcher 15 55 615 455;
#P outlet 97 236 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 97 196 40 9109513 pattr;
#X prestore 1 0 1;
#P objectname u317000008;
#P newex 97 166 143 9109513 sprintf bindto parent::parent::%s;
#P newex 98 132 54 9109513 unpack s s;
#P newex 98 56 45 9109513 loadbang;
#P newex 98 105 57 9109513 patcherargs;
#P fasten 2 1 3 0 147 160 102 160;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 197 102 69 9109513 p pattr_test u2;
#P objectname voice_param[1];
#N vpatcher 270 309 870 709;
#P outlet 97 236 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 97 196 40 9109513 pattr;
#X prestore 1 0 0;
#P objectname u926000009;
#P newex 97 166 143 9109513 sprintf bindto parent::parent::%s;
#P newex 98 132 54 9109513 unpack s s;
#P newex 98 56 45 9109513 loadbang;
#P newex 98 105 57 9109513 patcherargs;
#P fasten 2 1 3 0 147 160 102 160;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 107 102 69 9109513 p pattr_test u1;
#P objectname voice_param;
#P newex 503 174 39 9109513 print u3;
#P newex 460 174 39 9109513 print u2;
#P newex 450 256 34 9109513 print b;
#P newex 216 210 49 9109513 print pack;
#P newex 416 174 39 9109513 print u1;
#P newex 216 151 52 9109513 buddy 3;
#P newex 216 178 52 9109513 pack 0 0 0;
#P window linecount 0;
#P comment 445 72 100 9109513 manual test;
#P fasten 8 0 2 0 112 144 221 144;
#P fasten 11 0 2 0 411 140 221 140;
#P connect 2 0 1 0;
#P connect 1 0 4 0;
#P fasten 9 0 2 1 202 139 242 139;
#P fasten 11 0 2 1 411 140 242 140;
#P connect 2 1 1 1;
#P fasten 10 0 2 2 290 139 263 139;
#P fasten 11 0 2 2 411 138 263 138;
#P connect 2 2 1 2;
#P fasten 8 0 3 0 112 128 421 128;
#P connect 2 2 5 0;
#P connect 2 1 5 0;
#P connect 2 0 5 0;
#P fasten 9 0 6 0 202 129 465 129;
#P fasten 10 0 7 0 290 128 508 128;
#P pop;
#P newobj 287 164 55 9109513 p pack test;
#P objectname "pack test";
#P window clipboard copycount 4;


June 16, 2006 | 5:35 am

Your first ubumenu (the only on the left) is not in pattrmode 1, like
the other 2.

jb


June 16, 2006 | 5:43 am

By mode I am assuming you mean toggle/normal. Yes?
I see all three set to normal, but pack still seems to spit
out the wrong values. Is there some other kind of mode?

Anthony


June 16, 2006 | 4:17 pm


June 16, 2006 | 4:20 pm


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