Skip to content

Commit

Permalink
Merge pull request 0xfe#1553 from rvilarl/point/tupletPoint
Browse files Browse the repository at this point in the history
tuplet point refactored
  • Loading branch information
rvilarl authored Apr 8, 2023
2 parents 53a0172 + 9b52dce commit 1243032
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/fonts/common_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ export const CommonMetrics = {
shiftLine: -1,

// used by tuplets
tupletPoint: 22,
shiftY: -6,
},

Expand Down
2 changes: 1 addition & 1 deletion src/tuplet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class Tuplet extends Element {

this.ratioed =
this.options.ratioed != undefined ? this.options.ratioed : Math.abs(this.notes_occupied - this.num_notes) > 1;
this.point = Tables.currentMusicFont().lookupMetric('digits.tupletPoint');
this.point = (Tables.NOTATION_FONT_SCALE * 3) / 5;
this.y_pos = 16;
this.x_pos = 100;
this.width = 200;
Expand Down

0 comments on commit 1243032

Please sign in to comment.