Forums > MaxMSP

Downsampling lcd lineto.

Jan 24 2012 | 9:22 pm

I'd like to downsample the output from lcd using lineto. By downsamping I mean something like the attached image. In other words; for (some arbitrary number of x/y pairs) take the first and last pair and connect them with a straight line. This is what I have so far

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

but it doesn't work right. I'm guessing I would have to do something involving making the end of the previous line into thee beginning of the next line, but no clue how to do that.

Thanks much in advance



  1. tangents.jpg


Jan 24 2012 | 9:24 pm

sorry if the pic is too small, let me know and I will repost.

Jan 24 2012 | 10:39 pm

if [thresh] doesnt do what you want you could use [int] to store the numbers and trigger them with a metro.

if the "lineto" movement is linear, you could also truncate the range, for example by rounding
incoming numbers to multiples of 5.


Jan 24 2012 | 10:59 pm

Thresh is sweeeeet.

But maybe I will try the metro thing for more control.

Thanks again


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

Forums > MaxMSP