Reimplemented audio sample analysis. For the forth time. I really like this one.