4.22 spectral analysis, how does it work exactly?

This is one way(of many) to approach it. Stores the historical max recorded volume per band, then maps to a tweakable output-range.