rhythmScore function

String rhythmScore(
  1. List<Figure> figures, {
  2. String time = '4/4',
  3. Pitch? pitch,
  4. int? bpm,
})

Partitura de ritmo: figures numa altura só (pitch), em compassos completos de time. Colcheias seguidas saem ligadas por barra (em pares; em 6/8, em grupos de três). bpm vira a indicação de andamento. As pausas não ganham id: só as notas (o i-ésimo evento de nota; pausa não conta).

Implementation

String rhythmScore(
  List<Figure> figures, {
  String time = '4/4',
  Pitch? pitch,
  int? bpm,
}) {
  final note = pitch ?? Pitch.parse('C4');
  return _rhythmScore(
    figures,
    _rhythmHeading(note, time, bpm),
    note: note,
    withRestIds: false,
  );
}