     @IBAction func recordEnablePressed(_ sender: UIButton) {
         if let recorder = recorder {
             if !recorder.recordingEnabled {
-                // recording was not enabled.
-                print("JAMVC: Record pressed; enabled.")
-                recEnableButton.tintColor = UIColor.red
-                recorder.recordingEnabled = true
+                setRecordingEnabled()
             } else {
-                print("JAMVC: Record pressed; disabled.")
-                recEnableButton.tintColor = UIColor.red.darkerColor
-                recorder.recordingEnabled = false
+                setRecordingDisabled()
             }
         }
     }


    /// Resets to a new performance state.
    func newRecordingView() {
        if let recorder = recorder {
            recorder.recordingView.closePdFile()
            recorder.recordingView.removeFromSuperview()

                    
                } else {
                    // Just reset to a new recording
                    recorder.recordingIsDone = false
                    playButton.isEnabled = false
                    roboplayButton.isEnabled = false
