docs: public void setWaveform(WaveformDetail waveform, TrackMetadata metadata, BeatGrid beatGrid) {
          this.waveform.set(waveform);
          if (metadata != null) {
              cueList.set(metadata.getCueList());
          } else {
              cueList.set(null);
          }
          this.beatGrid.set(beatGrid);
          clearPlaybackState();
          repaint();
          if (!autoScroll.get()) {
              invalidate();
          }
      }