Skip to content

Commit

Permalink
Sort pedal marking notes before committing them
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredjj3 committed Jan 14, 2025
1 parent ab84729 commit b174771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rendering/pedal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export class Pedal {
}
}

vexflowStaveNotes.sort((a, b) => a.getAbsoluteX() - b.getAbsoluteX());

return new vexflow.PedalMarking(vexflowStaveNotes);
}
}

0 comments on commit b174771

Please sign in to comment.