zl group with metro

Jan 25, 2012 at 4:59pm

zl group with metro

The following is a solution that was suggested on this forum to “downsample” some x/y coords. It does exactly what I want, but unfortunately the metro makes the group consist of nothing but the last input, which is useless. What can I do about this?

Thanks much in advance


– Pasted Max Patch, click to expand. –
Jan 25, 2012 at 10:33pm

What’s the output you’re looking for? Something that downsamples x/y coords would look like this, I guess, but I doubt that’s what you’re looking for?

– Pasted Max Patch, click to expand. –
Jan 26, 2012 at 4:12am

Reg is nice, but I went this way;

– Pasted Max Patch, click to expand. –

I guess I misexpressed myself by calling it downsampling? what is the right term?

Thanks again


Jan 26, 2012 at 4:32am

did you look at speedlim?

Jan 26, 2012 at 4:48am

Very tasty, Mr Chris, but where shall I put it? After the lcd, or the bang that outputs the int, or later still?

Thanks again


Jan 26, 2012 at 6:15am

Wetterberg: Compare the two lcds in the image. Notice how the one on the right is “smoother” than the one on the left. This is basically what I'm looking for, except obviously not for the random line coming from offscreen (this always shows up, no idea why yet). What I'm doing is driving a gesture handler that requires a minimum of 16 points for successful recognition. I'd like to smooth out the input somewhat while still maintaining “vertex” points. See my previous post for an abstract graphical example

Thanks again



  1. stars.JPG
Jan 26, 2012 at 7:01am

I’m not really sure what you’re going for, but:

– Pasted Max Patch, click to expand. –
Jan 26, 2012 at 2:24pm

That’s it exactly chris, many thanks

But – still that diagonal line. I’m assuming the first point should not be lineto but rather moveto. How to do this?

Jan 26, 2012 at 7:26pm

Post your entire patch.


You must be logged in to reply to this topic.