<div dir="ltr">Thanks daniel; i'm aware of this technique.<div>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.</div><div><br></div><div>Any thoughts on that?</div><div><br></div><div>-ali</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 18, 2017 at 3:45 PM, Daniel Iglesia <span dir="ltr"><<a href="mailto:daniel.iglesia@gmail.com" target="_blank">daniel.iglesia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Grabbing the previous incoming value, and one [expr] should do it, to implement a first order filter</div><div><br></div><div>y[i] := y[i-1] + α * (x[i] - y[i-1])</div><div><br></div><div>as</div><div><br></div><div>[expr if($f1>$f2, $f3+.1*($f1-$f3), $f3+.2*($f1-$f3))]</div><div><br></div><div>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.</div><div>.1 is the smoothing coeff for increasing, .2 is the smoothing coeff for decreasing.</div><div><br></div><div>So:</div><div><br></div><font face="monospace, monospace">[(floatatom)(<br>|<br>[t f f b] <br>|   \  /<br>|    \/<br>|    /\<br>|   /  \<br>|  [float]<br>|   |<br>|   | <br>|   |<br>[expr if($f1>$f2, $f3+.1*($f1-$f3), $f3+.2*($f1-$f3)) ]  <br>|<br>|<br>[(floatatom)(<br>|<br><route connection into 3rd outlet of expr></font><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 18, 2017 at 11:18 AM, Ali Momeni <span dir="ltr"><<a href="mailto:batchku@gmail.com" target="_blank">batchku@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello all,<div><br></div><div>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.</div><div><br></div><div>Thank you!</div><span class="m_3964352277968961879HOEnZb"><font color="#888888"><div><br></div><div>-ali</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>