tick method

void tick(
  1. double ms
)

A música está no instante ms: a cortina cobre o que a conta manda, e o estado só muda se o conjunto mudar.

Implementation

void tick(double ms) {
  if (isClosed) return;
  final covered = curtainCovered(
    current: timeline.measureIndexAt(ms),
    ms: ms,
    lastBeatMs: _lastBeat,
    count: timeline.measureCount,
  );
  if (setEquals(covered, state.covered)) return;
  emit(CurtainState(covered: covered));
}