Get the module of estimate of analytic signal. Phase response depends a lot on input signal, it's not great for bass but gets better in medium frequencies.
Sliding RMS computation To use for coarse grained levels for visual display.
Simple envelope follower, filters the envelope with 24db/oct lowpass.
Copyright 1999, by Sean M. Costello