Skip to content

Commit

Permalink
Merge pull request #1596 from jaredjj3/fix/tables
Browse files Browse the repository at this point in the history
Prevent octave from being -0 when calculating key properties
  • Loading branch information
rvilarl committed Sep 15, 2023
2 parents 207dc59 + f633686 commit e5f7786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ export class Tables {
let octave = parseInt(pieces[1], 10);

// Octave_shift is the shift to compensate for clef 8va/8vb.
octave += -1 * options.octave_shift;
octave -= options.octave_shift;

const baseIndex = octave * 7 - 4 * 7;
let line = (baseIndex + value.index) / 2;
Expand Down

0 comments on commit e5f7786

Please sign in to comment.