Skip to content

Commit

Permalink
tuplet point refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Apr 6, 2023
1 parent 53a0172 commit 9b52dce
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 9b52dce

Please sign in to comment.