Audio analysis and peak detection