 
 extension ChirpJamViewController: PlayerDelegate {
     
+    /// Updates the progress bar in response to steps from the ChirpPlayer
     func progressTimerStep() {
         recordingProgress.progress = Float(recorder!.progress / recorder!.maxPlayerTime)
     }
 
-    /// Finished a recording or playback
+    /// Updates UI when the ChirpPlayer reports playback/recording has finished.
     func progressTimerEnded() {
         recordingProgress.progress = 0.0
         recorder!.stop()

        }
    }
    
//    override func viewDidAppear(_ animated: Bool) {
//        /// FIXME: The chirpViewContainer bounds is unknown until now and the ChirpViews then jerk into place in a bad way. Can we fix this?
//        print("DidAppear container", chirpViewContainer.bounds)
//        print("DidAppear recorder ", recorder?.recordingView.bounds ?? "not available")
//    }
    
    /// Called if instrument is changed in the dropdown menu
    func instrumentChanged() {
        if let recorder = recorder {

        rewindButton.isEnabled = true
        jamButton.isEnabled = true
        playButton.isEnabled = true
        playButton.setImage(#imageLiteral(resourceName: "microjam-play"), for: .normal)
    }
}
