SoundAnalysis code complete, but messy.