<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">There's an implementation of a peak holder in this blog post: <a href="http://dariosanfilippo.tumblr.com/post/162523174771/lookahead-limiting-in-pure-data">http://dariosanfilippo.tumblr.com/post/162523174771/lookahead-limiting-in-pure-data</a>. I remember testing it but please let me know if you find a bug.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">The current peak is replaced to whatever the input is after a desired time, and the counter is reset whenever a new peak is found. It should be easy to change it so that the peak is reset periodically.</div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I hope it helps.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dario</div><br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 2 February 2018 at 13:52, Roman Haefeli <span dir="ltr"><<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey all<br>
<br>
Can this be done in vanilla? I'd like to output the maximum value of<br>
the last N input samples in the signal domain. Ideally N would be<br>
adjustable. <br>
<br>
It bugs my mind, but I can't think of a solution for this simply<br>
problem.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Roman</font></span><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">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/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div></div>