chordScore function
Partitura de um acorde (EX21, chord-from-staff): as notes soam juntas
numa semibreve, na pauta de sol, num compasso de time. O id de cada nota é
o de roundNoteId (a primeira é a de baixo).
Implementation
String chordScore(List<Pitch> notes, {String? key, String time = '4/4'}) {
final length = measureEighths(time);
return _score([
[
for (var i = 0; i < notes.length; i++)
_Event(
duration: length,
type: 'whole',
pitch: notes[i],
noteIndex: i,
chord: i > 0,
),
],
], _plainHeading(Clef.treble, key, time));
}