menu building strangeness

Apr 19, 2008 at 4:54pm

menu building strangeness

hi all, i’m having a strange problem with ubumenu..take a look at the patch

max v2;
#N vpatcher 32 48 652 445;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 215 307 67 196617 send refresh;
#P button 215 283 15 0;
#P newex 43 93 52 196617 r refresh;
#P user ubumenu 43 283 169 196617 0 1 1 0;
#X add a;
#X add b;
#X add c;
#X add d;
#X add e;
#X prefix_set 0 0 0;
#P newex 43 201 51 196617 strippath;
#P newex 43 221 78 196617 prepend append;
#P newex 43 122 88 196617 t dump clear;
#P newex 43 175 69 196617 route symbol;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 43 148 58 196617 coll files 1;
#P newex 426 216 67 196617 send refresh;
#P newex 426 188 44 196617 del 300;
#P message 378 122 33 196617 dump;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 378 156 58 196617 coll files 1;
#P comment 233 284 69 196617 menu refresh;
#P window linecount 3;
#P comment 416 112 100 196617 first click dump and look menu populate not the right way;
#P window linecount 1;
#P comment 214 219 18 196617 2);
#P comment 417 97 22 196617 1);
#P window linecount 3;
#P comment 214 235 100 196617 try refresh manually and look it populates correctly;
#P window setfont “Sans Serif” 12.;
#P window linecount 2;
#P comment 335 282 221 196620 i can’t understand why it happens!! is this some kind of bug…;
#P connect 16 0 12 0;
#P connect 12 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 14 0;
#P connect 14 0 13 0;
#P fasten 12 1 15 0 126 247 48 247;
#P connect 13 0 15 0;
#P connect 17 0 18 0;
#P connect 7 0 6 0;
#P connect 6 3 8 0;
#P connect 8 0 9 0;
#P pop;

#37022
Apr 19, 2008 at 5:01pm

i found a fix!

max v2;
#N vpatcher 32 111 652 508;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 215 307 67 196617 send refresh;
#P button 215 283 15 0;
#P newex 43 93 52 196617 r refresh;
#P user ubumenu 43 283 169 196617 0 1 1 0;
#X add a;
#X add b;
#X add c;
#X add d;
#X add e;
#X prefix_set 0 0 0;
#P newex 43 201 51 196617 strippath;
#P newex 43 221 78 196617 prepend append;
#P newex 43 122 88 196617 t dump clear;
#P newex 43 175 69 196617 route symbol;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 43 148 58 196617 coll files 1;
#P newex 426 216 67 196617 send refresh;
#P newex 426 188 50 196617 deferlow;
#P message 378 122 33 196617 dump;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 378 156 58 196617 coll files 1;
#P comment 233 284 69 196617 menu refresh;
#P window linecount 2;
#P comment 496 184 95 196617 i put deferlow here and it works;
#P window linecount 1;
#P comment 496 216 100 196617 mmm..good to know!;
#P connect 13 0 9 0;
#P connect 9 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 11 0;
#P connect 11 0 10 0;
#P fasten 9 1 12 0 126 247 48 247;
#P connect 10 0 12 0;
#P connect 14 0 15 0;
#P connect 4 0 3 0;
#P connect 3 3 5 0;
#P connect 5 0 6 0;
#P pop;

#127441
Apr 19, 2008 at 5:12pm

Sorry I don’t have any useful answer, but this extra info may help someone else figure it out. Messing around with your patch, I found out that the same problem occurs with [umenu] and that it seems as though the [del] object is the source of the trouble. Sorry I can’t be of more help, that is a strange one.

#127442
Apr 19, 2008 at 5:30pm

On Apr 19, 2008, at 9:55 AM, mic wrote:
> hi all, i’m having a strange problem with ubumenu..take a look at
> the patch

It does seem a little strange. It doesn’t seem to like getting
populated from a bang coming from a delay at interrupt level.

You patch works if overdrive is off. The fact that you were driving it
from the end of dump message from a coll seems irrelevant. The delay
is what was causing your problem.

#P window setfont “Sans Serif” 12.;
#P window linecount 1;
#P comment 331 222 150 196620 Good;
#P window setfont “Sans Serif” 9.;
#P newex 455 358 67 196617 send refresh;
#P newex 455 337 50 196617 deferlow;
#P message 407 271 33 196617 dump;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 407 305 58 196617 coll files 1;
#P comment 445 261 100 196617 This works;
#P user panel 330 217 387 166;
#X brgb 197 244 185;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 658 122 46 196617 also bad;
#P comment 634 97 22 196617 1a);
#P window setfont “Sans Serif” 12.;
#P comment 331 42 150 196620 Bad (if overdrive is on);
#P button 634 124 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 634 149 44 196617 del 300;
#P newex 634 174 67 196617 send refresh;
#P newex 215 307 67 196617 send refresh;
#P button 215 283 15 0;
#P newex 43 93 52 196617 r refresh;
#P user ubumenu 43 283 169 196617 0 1 1 0;
#X add a;
#X add b;
#X add c;
#X add d;
#X add e;
#X prefix_set 0 0 0;
#P newex 43 201 51 196617 strippath;
#P newex 43 221 78 196617 prepend append;
#P newex 43 122 88 196617 t dump clear;
#P newex 43 175 69 196617 route symbol;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 43 148 58 196617 coll files 1;
#P newex 455 178 67 196617 send refresh;
#P newex 455 157 44 196617 del 300;
#P message 407 91 33 196617 dump;
#N coll files 1;
#T flags 1 0;
#T 0 a;
#T 1 b;
#T 2 c;
#T 3 d;
#T 4 e;
#P newobj 407 125 58 196617 coll files 1;
#P comment 233 284 69 196617 menu refresh;
#P window linecount 3;
#P comment 445 81 100 196617 first click dump and look menu populate
not the right way;
#P window linecount 1;
#P comment 214 219 18 196617 2);
#P comment 446 66 22 196617 1);
#P window linecount 3;
#P comment 214 235 100 196617 try refresh manually and look it
populates correctly;
#P window setfont “Sans Serif” 12.;
#P window linecount 2;
#P comment 49 51 221 196620 i can’t understand why it happens!! is
this some kind of bug…;
#P user panel 330 37 387 167;
#X brgb 236 144 144;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 30 0 31 0;
#P connect 28 3 30 0;
#P connect 29 0 28 0;
#P connect 22 0 21 0;
#P connect 21 0 20 0;
#P connect 9 0 10 0;
#P connect 7 3 9 0;
#P connect 8 0 7 0;
#P connect 18 0 19 0;
#P connect 14 0 16 0;
#P fasten 13 1 16 0 126 247 48 247;
#P connect 15 0 14 0;
#P connect 12 0 15 0;
#P connect 11 0 12 0;
#P connect 13 0 11 0;
#P connect 17 0 13 0;
#P window clipboard copycount 33;

Chris Muir
cbm@well.com

http://www.xfade.com

#127443
Apr 19, 2008 at 6:25pm

On 19 avr. 08, at 19:30, Chris Muir wrote:

> It does seem a little strange. It doesn’t seem to like getting
> populated from a bang coming from a delay at interrupt level.
>
> You patch works if overdrive is off. The fact that you were driving
> it from the end of dump message from a coll seems irrelevant. The
> delay is what was causing your problem.

The problem comes from [strippath]. [strippath] doesn’t work at
interrupt level. If you need to do that you may have a look to regexp
to extract the file name: regexp .+/(.+)

HTH,
ej

#127444

You must be logged in to reply to this topic.