Initialization of Smooth patch

harrisonpault's picture

Hi guys!

I am looking for tips on using the Smooth patch. I am using the Multitouch patch to get x,y, size, angle structures from touch input devices, and I want to smooth the outputs. When I use the Smooth patch, the "x" position for example, ramps up from 0 towards the current actual position. What I would like, would be for it to instantaneously (upon first touch) be equal to the current position, then change in a smoother fashion as the finger moves. Is there a simple way to do this?

Paul

bwalkin's picture
Re: Initialization of Smooth patch

You just need to externalize the timebase on the Smooth patch. When time is frozen, you can seed the smooth patch with a value and it won't try to smooth it from its previous value. When time's resumed, it'll start smoothing from that new value. Attached a sample composition demonstrating this.

PreviewAttachmentSize
Smooth with Initial Value.qtz45.64 KB