Downsampling lcd lineto.

jamesson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

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

Joe

3245.tangents.jpg
jpg
jamesson's icon

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

Roman Thilenius's icon

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.

-110

jamesson's icon

Thresh is sweeeeet.

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

Thanks again

Joe