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...
Thank you very much,
D.S
http://www.flickr.com/photos/schafferdavid/ https://soundcloud.com/schafferdavid
The mapping library is very likely to have stuff that would be helpful to you, I guess..
On Wed, Feb 26, 2014 at 10:42 PM, David Schaffer schafferdavid@hotmail.comwrote:
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...
Thank you very much,
D.S
http://www.flickr.com/photos/schafferdavid/
https://soundcloud.com/schafferdavid
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I refactored a bunch of the easing styles from Raphael.js to use with data structures (attached). Look in [pd movers] and then [pd animate].
The patch itself only works in Pd-l2ork, but you can break out all of the animation logic. You'll just need to replace any instance of [pi(--[pdinfo], with the value of Pi. (I should probably get rid of that anyway.)
Here's a video: jonathanwilkes.net/easing.webm
On Wednesday, February 26, 2014 4:00 PM, Alexandros Drymonitis adrcki@gmail.com wrote:
The mapping library is very likely to have stuff that would be helpful to you, I guess..
On Wed, Feb 26, 2014 at 10:42 PM, David Schaffer schafferdavid@hotmail.com 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...
Thank you very much,
D.S
http://www.flickr.com/photos/schafferdavid/ https://soundcloud.com/schafferdavid
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
you can have a try with line3 from the nusmuk-utils lib. it's a line object using a 3rd order interpolation aiming to smooth transition... it really look at what you describe.
cheers c
Le 26/02/2014 21:42, David Schaffer a écrit :
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...
Thank you very much,
D.S
http://www.flickr.com/photos/schafferdavid/
https://soundcloud.com/schafferdavid
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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