There's an implementation of a peak holder in this blog post: http://dariosanfilippo.tumblr.com/post/162523174771/lookahead-limiting-in-pure-data. I remember testing it but please let me know if you find a bug.

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.

I hope it helps.

Dario


On 2 February 2018 at 13:52, Roman Haefeli <reduzent@gmail.com> wrote:
Hey all

Can this be done in vanilla? I'd like to output the maximum value of
the last N input samples in the signal domain. Ideally N would be
adjustable. 

It bugs my mind, but I can't think of a solution for this simply
problem.

Roman

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list