tocarAlvo method

Future<void> tocarAlvo()

O acorde da pergunta de agora toca de novo (o "Ouvir de novo" e a volta do erro).

Implementation

Future<void> tocarAlvo() async {
  final target = _session.current?.chord;
  if (target == null) return;
  final engine = await _openEngine();
  if (engine == null || isClosed || _session.done) return;
  engine.allNotesOff();
  engine.schedule(chordEarEvents(target, engine.earliestScheduleSeconds));
}