Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return noteheads after build #1590

Merged
merged 1 commit into from
Jul 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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