hanonRound function
A rodada de step: a partitura, o andamento e as alturas que o teclado
confere.
Implementation
ScoreRound hanonRound(HanonStep step, {required String fileName}) {
final piece = hanonPieceOf(step);
return ScoreRound(
bytes: utf8Bytes(piece.scoreXml),
fileName: fileName,
mode: PlayMode.realtime,
hand: Hand.ambas,
bpm: step.bpm,
pitches: piece.pitches,
noteIds: piece.playedNoteIds,
// As notas presas (nº 37) soam, mas não se cobram.
freeNotes: piece.freeNoteIds,
marks: patternMarksOf(piece.writtenNotes),
);
}