load method
- TimedRound round
Monta a rodada, sem começar a tocar: o juiz, o relógio e o que o app agenda.
Implementation
void load(TimedRound round) {
_release();
_round = round;
_clock = BeatClock(
bpm: round.bpm,
beatsPerBar: round.beatsPerBar,
swing: round.swing,
);
_judge = round.judge();
_capture = PerformanceCapture();
_backingOn = round.hasBacking;
_backingVolume = round.backingVolume;
_backingChannels = {
for (final note in round.appNotes)
if (note.backing) note.channel,
};
_all = _eventsOf(round);
_events = _visible();
_next = 0;
_done = Completer<RoundResult?>();
}