how to make a non-signal version of rampsmooth~ ?

Floating Point's icon

I have a stream of numbers coming in at around 10 or 11 hz and I'd like to implement the same functionality as rampsmooth~ but at event-rate, not sample rate, in an effort to not resort to signalizing my stream of numbers... maybe there's on object or extern that does that?

double_UG's icon

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

Floating Point's icon

thanks doubleug, but simple smoothing is not what I'm really after. I'm looking for something where rise-time and decay time are independent from each other. So if, like rampsmooth~, there is a sudden change in value going up, I can have it catch up to the difference at a different rate to a sudden change down in value. Sort of like a two-way leaky integrator.

Roman Thilenius's icon


at message rate you always can have 2 modes; one for real time in ms and one per-incoming.

wouldnt you come relatively close with 2 [slide] in series?

had not have my coffee yet, looking forward to a solution.

Floating Point's icon

thanks raja, didn't realize/forgot there was a whole set of gen examples in the examples menu, or that there was a gen equivalent of rampsmooth-- I'll see if I can piece together an event-level version by interpreting the code in there-- maybe do a js version

Floating Point's icon

OK just looked at slide... thanks roman-- I think that's all I need-- why did I not remember this ? sorry for the noise, but thanks for the suggestions nonetheless