[PP] problems, what am i doing wrong? [Patch Included]

Mar 29, 2007 at 7:13pm

[PP] problems, what am i doing wrong? [Patch Included]

Basically, when i attach the [PP] object with the feedback,(ie top and bottom), it freezes at the lowest value specified within the [PP] object and i’m unable to change the value of the objects.

A brief example patch is posted below, any advice would be appreciated.

Thanks in advance,
John

max v2;
#N vpatcher 0 0 1024 692;
#P user dial 540 302 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P window setfont “Sans Serif” 9.;
#N vpatcher 15 55 615 455;
#P outlet 49 78 15 0;
#P inlet 49 27 15 0;
#P window setfont “Sans Serif” 9.;
#N pp 12 “Band1 Wet Tune” -250. 250.;
#P newobj 49 50 154 9109513 pp 12 “Band1 Wet Tune” -250. 250.;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 513 302 13 9109513 p p12;
#N vpatcher 15 55 615 455;
#P outlet 49 78 15 0;
#P inlet 49 27 15 0;
#P window setfont “Sans Serif” 9.;
#N pp 11 “Band1 Dry Tune” -250. 250.;
#P newobj 49 50 153 9109513 pp 11 “Band1 Dry Tune” -250. 250.;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 576 303 13 9109513 p p11;
#P window setfont “Sans Serif” 10.;
#P number 540 340 28 10 0 0 164 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user dial 471 303 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P number 471 341 28 10 0 0 164 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 4 0 1 0;
#P hidden connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 3 0 5 0;
#P hidden connect 5 0 2 0;
#P connect 2 0 3 0;
#P pop;

#31079
Mar 30, 2007 at 7:55am

It does work overhere (ppc g4 / osx 10.4.9 / 4.6.2). It’s always useful to specify what system you’re on and what version of what you’re using.

There are two things you do that I always do different; give it a try. First is not to check ‘dont change’ in the number box inspector but check the ‘ignore click’ option from the object menu instead. The second is to get the pp out of p. Yeah, those wires but naming objects is very useful for interface design.

Both options might not be reason why it should not work the way you did, but hey, max programming is not an exact science, as Einstein always said.

_
johan

#P window setfont “Sans Serif” 9.;
#P flonum 251 333 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 104 303 64 196617 pvar mydial;
#P window setfont “Sans Serif” 10.;
#P number 273 158 42 10 0 0 36 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P noclick;
#P user dial 279 126 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P objectname mydial;
#P window setfont “Sans Serif” 9.;
#N pp 11 “Band1 Wet Tune” -250. 250.;
#P newobj 170 303 172 196617 pp 11 “Band1 Wet Tune” -250. 250.;
#N vpatcher 19 54 619 454;
#P outlet 49 78 15 0;
#P inlet 49 27 15 0;
#P window setfont “Sans Serif” 9.;
#N pp 12 “Band1 Wet Tune” -250. 250.;
#P newobj 49 50 154 196617 pp 12 “Band1 Wet Tune” -250. 250.;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 149 126 35 196617 p p12;
#P user dial 111 120 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P window setfont “Sans Serif” 10.;
#P number 111 156 42 10 0 0 36 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P noclick;
#P hidden connect 4 0 5 0;
#P connect 3 1 7 0;
#P connect 6 0 3 0;
#P connect 3 0 6 0;
#P connect 0 0 2 0;
#P hidden connect 1 0 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 8;

#100450
Mar 30, 2007 at 11:08am

Thanks for your reply Johan.

“It’s always useful to specify what system you’re on and what version of what you’re using.”

Yes, sorry i really should have known better, i was just rushing it a bit! I’m running 4.5.7 on XP, Pentimum M 1.73 (laptop).

I got a little bit more mileage from the altered patch you posted, but it was still defaulting back to it’s original value, (albeit after responding to a drag).

I’m not sure what’s wrong with the syntax, i’ve also included another example of the same object connections that works fine…but i have had this problem before although i can’t remember how i fixed it last time.

I would upgrade to 4.6.2 but this is part of a much bigger patch i’ve been working on all year and i’d hate to have to debug it again at this stage, (it’s a university project and with the exception of this PP object issue it’s all working perfectly). Although on completion of this project i’ll be straight on the 4.6.2 bandwagon!

Here’s another example with a bit more detail of what works and what doesn’t.

Thanks,
John

max v2;
#N vpatcher 15 55 639 527;
#P origin 0 23;
#P window setfont “Sans Serif” 14.;
#P window linecount 3;
#P comment 81 284 215 9109518 Some response in this number box on drag but very little , however there is some progress!;
#P comment 67 121 220 9109518 This one responds vaguely , it responds to an extent but defaults back to -248 at mouse up!;
#P window linecount 4;
#P comment 330 116 101 9109518 This one freezes at -250 and won’t respond at all!;
#P window setfont “Sans Serif” 10.;
#P number 458 223 28 10 0 0 164 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 3;
#N vpatcher 15 55 615 455;
#P window setfont “Sans Serif” 9.;
#N pp 6 “Band1 Feedback Level” 0. 127.;
#PP text “Feedback for the low frequency band”;
#P newobj 50 50 166 9109513 pp 6 “Band1 Feedback Level” 0. 127.;
#P background;
#P inlet 50 30 15 0;
#P outlet 50 74 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P hidden newobj 491 193 13 9109513 p p6;
#P user dial 458 193 29 29 128 1 0 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P flonum 300 290 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 90 235 63 9109513 pvar mydial1;
#P window setfont “Sans Serif” 10.;
#P number 122 213 42 10 0 0 36 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P noclick;
#P user dial 122 177 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P objectname mydial1;
#P window setfont “Sans Serif” 9.;
#N pp 11 “Band1 Wet Tune” -250. 250.;
#P newobj 157 237 153 9109513 pp 11 “Band1 Wet Tune” -250. 250.;
#N vpatcher 19 54 619 454;
#P outlet 49 78 15 0;
#P inlet 49 27 15 0;
#P window setfont “Sans Serif” 9.;
#N pp 12 “Band1 Wet Tune” -250. 250.;
#P newobj 49 50 154 9109513 pp 12 “Band1 Wet Tune” -250. 250.;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P pop;
#P newobj 375 201 35 9109513 p p12;
#P user dial 347 189 29 29 501 1 -250 0 249 270 1 1. 155 178 255 220 220 220 119 119 119 224 224 224 0 0 0 0 0 0;
#P window setfont “Sans Serif” 10.;
#P number 347 225 42 10 0 0 36 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P noclick;
#P window setfont “Sans Serif” 14.;
#P window linecount 2;
#P comment 449 154 62 9109518 This one Works!;
#P connect 4 0 7 0;
#P hidden connect 5 0 6 0;
#P connect 7 0 4 0;
#P connect 4 1 8 0;
#P connect 3 0 2 0;
#P hidden connect 2 0 1 0;
#P connect 1 0 3 0;
#P hidden connect 10 0 9 0;
#P hidden fasten 9 0 11 0 463 211 463 211;
#P lcolor 6;
#P hidden connect 11 0 10 0;
#P pop;

#100451
Mar 30, 2007 at 12:46pm

The problem doesn’t occur on my system, so I someone with similar setup should jump in here. A dail without pp handles the scrolling properly; is it a pp issue?

good luck

_
johan

#100452
Mar 30, 2007 at 9:50pm

There’s definitely something strange going on with it, it doesn’t actually seem to work with just a dial either. However number boxes alone do work.

I actually have 46 [PP] objects in my pluggo and this is the only one that’s acting bizzarely, i even have the dial/number box/pp combination working, as shown in the last patch i posted.

The only factor i can think that could be causing the problem is that it’s got a negative value as an argument to [PP], but that argument still works with just a number box alone…i’ve even tried recreating it in new patches using newly instantiated objects with the same arguments and the same thing happens, so odds on it’s a [PP] thing.

Because it works with just the number box i’ve decided to ditch the dial and the plugin works fine, the PP object communicates and all is well. I’d be interested to know why it’s freezing on my system but as this is my final year university project i thought i’d be better working around the problem than tackling it head on at the moment.

At least it’s saved me a bit of space in my overcrowded UI! ;0)

John

#100453
Mar 31, 2007 at 2:28am

hrm, yes, that’s strange alright. I wonder why its like that.

#100454
Mar 31, 2007 at 11:06am

“hrm, yes, that’s strange alright. I wonder why its like that”

Maybe it starts with a W and ends in INDOWS? Or maybe it’s those two infamous letters X and P ;0)

When i get the time i’ll try and develop a detailed bug report for Support and see what they make of it but, as i said, at the moment i’m right in the middle of my final year at university so coursework and exam revision has to take precedence.

Once i’ve finished this patch, (at the end of this week at the latest), i’ll do the upgrade to 4.6.2 and try to replicate it there.

It’s an odd one for sure, although i did have similar problems with a [PP] using the values 0. – 127. but somehow, (can’t entirely remember how though), i managed to debug it and get it working. If i’m honest i think i just rebuilt it a few times and it worked but i’ve tried rebuilding this one so many times that i’ve just worked around it instead.

#100455

You must be logged in to reply to this topic.