destroy method

void destroy()

Call this to remove this sequence and its tracks from the global sequencer engine.

Implementation

void destroy() {
  _tracks.values.forEach((track) => deleteTrack(track));
  globalState.unregisterSequence(this);
}