rootsScore function

String rootsScore(
  1. List<Pitch> roots, {
  2. String time = '4/4',
})

Partitura dos baixos de listen-progression (EX15): uma semibreve por fundamental, cada uma num compasso de time, na pauta de fá. O id de cada nota é o de roundNoteId (o i-ésimo acorde da progressão).

Implementation

String rootsScore(List<Pitch> roots, {String time = '4/4'}) {
  final length = measureEighths(time);
  return _score([
    for (var i = 0; i < roots.length; i++)
      [_Event(duration: length, type: 'whole', pitch: roots[i], noteIndex: i)],
  ], _plainHeading(Clef.bass, null, time));
}