stop method

void stop()

Para: limpa o que foi agendado e as notas soando, e avisa o coordenador.

Implementation

void stop() {
  _stopTimer?.cancel();
  _stopTimer = null;
  final engine = this.engine;
  engine?.clearScheduled();
  engine?.allNotesOff();
  coordinator?.stopped(stop);
  if (!isClosed && state.playing) emit(const ChartMarkState());
}