Thanks daniel; i'm aware of this technique. Im specifically looking for a smoothing method that allows variable amounts of smoothing, and also implements a way to have increasing values be smoothed differently than decreasing values.
Any thoughts on that? -ali On Wed, Jan 18, 2017 at 3:45 PM, Daniel Iglesia <[email protected]> wrote: > Grabbing the previous incoming value, and one [expr] should do it, to > implement a first order filter > > y[i] := y[i-1] + α * (x[i] - y[i-1]) > > as > > [expr if($f1>$f2, $f3+.1*($f1-$f3), $f3+.2*($f1-$f3))] > > where $f1 is the incoming number, $f2 is the previous incoming number, the > output of this expr is routed into the second inlet as $f3. > .1 is the smoothing coeff for increasing, .2 is the smoothing coeff for > decreasing. > > So: > > [(floatatom)( > | > [t f f b] > | \ / > | \/ > | /\ > | / \ > | [float] > | | > | | > | | > [expr if($f1>$f2, $f3+.1*($f1-$f3), $f3+.2*($f1-$f3)) ] > | > | > [(floatatom)( > | > <route connection into 3rd outlet of expr> > > > On Wed, Jan 18, 2017 at 11:18 AM, Ali Momeni <[email protected]> wrote: > >> Hello all, >> >> Can someone point me to an existing abstraction/external that behaves >> somewhat like Max's "slide" object? Specifically, i'm looking for a way to >> smooth (low-pass) floats (control rate) but with the ability to smooth out >> increasing and decreasing values differently. >> >> Thank you! >> >> -ali >> >> _______________________________________________ >> [email protected] mailing list >> UNSUBSCRIBE and account-management -> https://lists.puredata.info/li >> stinfo/pd-list >> >> >
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
