We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bf918a + 35d2fe6 commit 6208749Copy full SHA for 6208749
src/stavenote.ts
@@ -487,7 +487,7 @@ export class StaveNote extends StemmableNote {
487
}
488
489
// Builds a `NoteHead` for each key in the note
490
- buildNoteHeads(): void {
+ buildNoteHeads(): NoteHead[] {
491
this._noteHeads = [];
492
const stemDirection = this.getStemDirection();
493
const keys = this.getKeys();
@@ -548,6 +548,7 @@ export class StaveNote extends StemmableNote {
548
this.addChildElement(notehead);
549
this._noteHeads[this.sortedKeyProps[i].index] = notehead;
550
551
+ return this._noteHeads;
552
553
554
// Automatically sets the stem direction based on the keys in the note
0 commit comments