sorry if this is a bit off-topic, but i need a hand.
i'm looking at creating a kind of hybrid sampler/sound editor, and for that i need a good waveform display. So a few weeks ago, i started looking up lots of stuff, and found that a min/max approach to getting the wave height for each pixel is not actually the best way to go, and there's a better algorithm.
from memory (and my memory is REALLY bad), it was something like 2 * log10(something)....
does anyone know what i am talking about, and what that algorithm is? i swear i am not hallucinating, and i actually saw source code for it...but now i can't find it anymore.