Refactor to separate pitch detection from audio loading and tuner display