     var state = State.readyToRecord
 
     @IBOutlet private var plot: AKNodeOutputPlot?
-    @IBOutlet private weak var infoLabel: UILabel!
-    @IBOutlet private weak var resetButton: UIButton!
-    @IBOutlet private weak var mainButton: UIButton!
-    @IBOutlet private weak var frequencySlider: AKSlider!
-    @IBOutlet private weak var resonanceSlider: AKSlider!
-    @IBOutlet private weak var loopButton: UIButton!
-    @IBOutlet private weak var moogLadderTitle: UILabel!
+    @IBOutlet private var infoLabel: UILabel!
+    @IBOutlet private var resetButton: UIButton!
+    @IBOutlet private var mainButton: UIButton!
+    @IBOutlet private var frequencySlider: AKSlider!
+    @IBOutlet private var resonanceSlider: AKSlider!
+    @IBOutlet private var loopButton: UIButton!
+    @IBOutlet private var moogLadderTitle: UILabel!
 
     enum State {
         case readyToRecord
         case recording
         case readyToPlay
         case playing
-
     }
 
     required init?(coder aDecoder: NSCoder) {

    }

    @IBAction func loopButtonTouched(sender: UIButton) {

        if player.isLooping {
            player.isLooping = false
            sender.setTitle("Loop is Off", for: .normal)
        } else {
            player.isLooping = true
            sender.setTitle("Loop is On", for: .normal)

        }

    }
    @IBAction func resetButtonTouched(sender: UIButton) {
        player.stop()
        plot?.node = mic

        setSliders(active: false)
    }

    func setupUIForPlaying() {
        let recordedDuration = player != nil ? player.audioFile?.duration : 0
        infoLabel.text = "Recorded: \(String(format: "%0.1f", recordedDuration!)) seconds"
        mainButton.setTitle("Play", for: .normal)
        state = .readyToPlay
