Forums > MaxMSP

Sensor data ramp after inactivity

October 14, 2011 | 9:12 am

Howdy people,

I have a situation where I need the data being captured by a distance sensor to ramp down to a 0 value after a specified period of inactivity.

For example, In the attached patch, the slider represents the sensor data and if it was to stop at, say 68 without change for more than 10 seconds, I need it to slowly ramp back down to 0 until it collects data again.

Any ideas?


October 14, 2011 | 11:27 am
– Pasted Max Patch, click to expand. –

October 14, 2011 | 2:26 pm

I think this does what you want.

– Pasted Max Patch, click to expand. –

October 14, 2011 | 9:35 pm

Thanks Christopher – that’s exactly what I was after!


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