Hello, list. I noticed that the step response of ba.peakholder and the step function itself are the same when the step size and the hold time are the same.
In other words, an input that is equal to the output is not detected as a new peak and it doesn't reset the countdown. Is that the desired behaviour? I would have thought that, if the input is 1 for 48 samples, and the hold time is 48 samples, we should see 1s from n = 0 to n = 95. This is how I'm doing it: peak_hold(HT, x) = loop ~ _ with { loop(fb) = ba.sAndH(reset | timer, abs(x)) with { reset = abs(x) >= fb; timer = fi.pole(1 - reset, 1 - reset) > HT * ma.SR; }; }; Best, Dario
_______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users