code: public void setWaveform(WaveformDetail waveform, CueList cueList, BeatGrid beatGrid) {
          this.waveform.set(waveform);
          this.cueList.set(cueList);
          this.beatGrid.set(beatGrid);
          clearPlaybackState();
          repaint();
          if (!autoScroll.get()) {
              invalidate();
          }
      }
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 waveform the waveform detail to display
  @param cueList used to draw cue and memory points
  @param beatGrid the locations of the beats, so they can be drawn