On Mit, 2014-02-26 at 20:42 +0000, David Schaffer wrote:
Hi ,
I was wonderning if anyone of you had tried to implement easing in pd. I'm working on a video animation patch that uses "random" objects and the result would look much better if I could find a way to "smooth" the transitions. I already use the "line" object, but I'm looking for a way to slow down the line output when the line comes to its end, then start smoothly when it has a new target value. I'm thinking of using the expr object but I would be grateful if someone could give me some design hints on this...
Those give you a smooth ramp between -1 and 1:
[3.1415, 0 3000( | [line 0 20] | [cos]
or:
[-3, 3 3000( | [line 0 20] | [expr tanh($f1)}
Roman