     }
     
     func waveformViewDidRender(_ waveform: FDWaveformView) {
-        waveformLoadingImageView.removeFromSuperview()
+        waveformLoadingImageView.isHidden = true
     }
     
     func waveformDidEndScrubbing(_ waveformView: FDWaveformView) {

        stingNumberLabel.text = "Sting \(stingIndex + 1)"
        updateLabels()
        
        // refresh playlists in case anything has changed
        engine.ipod.refreshPlaylists()
    }
    
    override func viewDidAppear(_ animated: Bool) {
        // get waveform view positions
        let waveformFrame = waveformLoadingImageView.frame
        
        waveformView = FDWaveformView(frame: waveformFrame)
        waveformView.doesAllowScrubbing = true
        waveformView.doesAllowScrubbing = true
        waveformView.doesAllowScroll = false

        
        waveformView.delegate = self
        view.addSubview(waveformView)
        
        // refresh playlists in case anything has changed
        engine.ipod.refreshPlaylists()
    }
    
    @IBAction func done() {
