Smoothing Flex Sensor Data

PMW's icon

Hey all,

I'm trying to make a data glove that uses flex sensors. I'm using a Lillypad to do so.
My issue is as follows:

Large jumps in data are not useful for me (I"m mostly using as a way to slowly control fades...), and i want to find a way to constrain the data to just registering increases or decreases of X amount. I've already used a number of the patches located here:

I'm just looking for a simple way to have max compare the last number to newest and make a determination about whether or not the difference between the two is greater than or less than the threshold i arbitrarily describe. I've tried using the conditional statements object, but i haven't had it work out for me. I'm just looking for some pointers and maybe a nudge in the right direction.

Thanks in advance.

-PMW

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

Check out the [slide] object in Max 6 (not sure if it's in earlier versions - if you don't see it, find the [f0.smooth] object on maxobjects).

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

Something like this?

There are probably easier ways to do this, and this is in floating point because it came out of another patch.