     // will be triggered by a background thread
     func playingEnded() {
         DispatchQueue.main.async {
-            self.setupUIForPlaying ()
+            self.setupUIForPlaying()
         }
     }
 
     @IBAction func mainButtonTouched(sender: UIButton) {
         switch state {
-        case .readyToRecord :
+        case .readyToRecord:
             infoLabel.text = "Recording"
             mainButton.setTitle("Stop", for: .normal)
             state = .recording

        resonanceSlider.property = "Resonance"
        resonanceSlider.format = "%0.3f"
    }

}

            try recorder.reset()
        } catch { AKLog("Errored resetting.") }

        // try? player.replaceFile((recorder.audioFile)!)
        setupUIForRecording()
    }

