Convert audio into an plain js array for visualization