Audio Visualizer from dB and Hz

Hello, I was wondering if anyone had a clever way to sort of replicate the data that roblox gets through their AudioEqualizer graph in studio via AudioAnalyzer.

I’ve tried doing some backwards logic with RMS level and the spectrum given, but I was never able to accurately replicate what the graph outputs and what my script would output (close but had distinct enough differences).

I’m not trying to re-create the UI, I’m simply wanting to be able to get the same/similar data to help branch it off for something I’m wanting to create.

For example of what I mean when I couldn’t get close replication (some songs better than others)
image

Note: The values displayed are the HIGHEST RMS Level found within a set frequency range

And yes, I know we can’t get the EXACT RV value because we don’t have any idea about the voltage being used and anything else contributing (i’m no audio engineering, just was doing some research).

Any help/ideas are appreciated. Thanks!