Skip to content

Commit

Permalink
return noteheads after build
Browse files Browse the repository at this point in the history
  • Loading branch information
accelerationa committed Jul 23, 2023
1 parent 2bf918a commit 35d2fe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stavenote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class StaveNote extends StemmableNote {
}

// Builds a `NoteHead` for each key in the note
buildNoteHeads(): void {
buildNoteHeads(): NoteHead[] {
this._noteHeads = [];
const stemDirection = this.getStemDirection();
const keys = this.getKeys();
Expand Down Expand Up @@ -548,6 +548,7 @@ export class StaveNote extends StemmableNote {
this.addChildElement(notehead);
this._noteHeads[this.sortedKeyProps[i].index] = notehead;
}
return this._noteHeads;
}

// Automatically sets the stem direction based on the keys in the note
Expand Down

0 comments on commit 35d2fe6

Please sign in to comment.