Forums > MaxMSP

lcd pensize bug?

Jun 21 2010 | 8:43 pm

Is it me or the "pensize" message adressed to lcd does not work properly?
I would like to specify two different numbers after the message ("pensize $1 $2"), but the lcd seems to just duplicate the first one (actually acting as if I wrote "pensize $1 $1").


Jun 21 2010 | 9:26 pm

This is the expected behavior. Check the lcd refpage, entry on pensize message.

"The horizontal and vertical thicknesses must be equal."

Jun 21 2010 | 11:56 pm

> "The horizontal and vertical thicknesses must be equal."

This ‘feature’ has silently been added after updating to 4.5 or 5 (I don’t remember). Once it was possible to use different values for horizontal and vertical thickness.

Jun 24 2010 | 6:04 am

Yes, I do remember using a very stylish "pensize 5 1" in Max 4.5.
It’s totally illogical to have to repeat the same number twice: it seems a mere backwards compatibility concern.
And I don’t consider this loss of a feature an improvement…

Jun 24 2010 | 8:48 am

using rectangle is the way to go.

Jun 24 2010 | 11:41 am

Hi Emmanuel,
Do you mean something like this or is there a better way to go?
Also, why is the line generated this way so discontinuous?
If this is due to the mouseEvent sampling rate in OSX, shouldn’t this also apply to the simple drawing with the mouse in the lcd?

-- Pasted Max Patch, click to expand. --

Jun 24 2010 | 1:04 pm

You can do something like this:

-- Pasted Max Patch, click to expand. --

Jun 24 2010 | 9:27 pm

Works like a charm, thanks!
The subpatch is quite clear: just when the mouse is clicked, there is a "jump" to the coordinates; otherwise, rects are drawn.
Is there any special reason to use the magic number "40"?
Or is it simply because it’s the minimum value that works?

Jun 24 2010 | 10:54 pm

It’s a bad hack actually. Basically what you need to do is generate the intermediate values, a uzi would probably be better than the line with arbitrary target time from my patch ;-)

Jun 25 2010 | 11:35 am

I’ll work it out :-)

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

Forums > MaxMSP