Interpolation / linear or polynomial. Help needed.

spinit's icon

Hi all!

I'm working on a project with a Reed Sensor to mesure the speed of a turning wheel sending On/Off values to MAX. I have accomplished to get RPM and Average Speed.

My problem is that I need a constant interpolation of these values, because all I'm getting is points every time the sensor goes on. (See uploaded .png)

In other words: I need to conect every new (RPM or Av.Speed) point with the last one linear or polynomial.

Thanks in advance for your help.

1109.fig01.png
png
Christopher Dobrian's icon

You don't say how you're doing it now (what you have tried so far), but how about the 'lineto' message to jit.lcd?

spinit's icon

Thanks for your answer.

I`m not interested in drawing this values. All I need are interpolated linear values from non-linear ones.

That means that if for example that if I become a value of 10RPM and later a value of 20RPM I want to go from 10 to 20 (like 10, 11, 12,...,20), later 12RPM (20, 19, 18,...12) and so on.

spinit's icon

Found a Solution.

THANKS Tim Lloyd!

JUMP TO SLIDE / Fading clicks on slider.

Max Patch
Copy patch and select New From Clipboard in Max.