unsetLoop method

void unsetLoop()

Disables looping for the sequence.

Implementation

void unsetLoop() {
  if (loopState == LoopState.BeforeLoopEnd) {
    final loopsElapsed = getLoopsElapsed(_getFramesRendered());

    engineStartFrame += loopsElapsed * getLoopLengthFrames();
  }

  loopStartBeat = 0;
  loopEndBeat = 0;
  loopState = LoopState.Off;

  getTracks().forEach((track) => track.syncBuffer());
}