code: public void setWaveformPreview(WaveformPreview preview, TrackMetadata metadata) {
          updateWaveform(preview);
          this.duration.set(metadata.getDuration());
          this.cueList.set(metadata.getCueList());
          clearPlaybackState();
          repaint();
      }
docs: Change the waveform preview being drawn. This will be quickly overruled if a player is being monitored, but
  can be used in other contexts.
  
  @param preview the waveform preview to display
  @param metadata information about the track whose waveform we are drawing, so we can translate times into
  positions and display hot cues and memory points