Skip to content

Commit e5f7786

Browse files
authored
Merge pull request #1596 from jaredjj3/fix/tables
Prevent octave from being -0 when calculating key properties
2 parents 207dc59 + f633686 commit e5f7786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ export class Tables {
615615
let octave = parseInt(pieces[1], 10);
616616

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

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

0 commit comments

Comments
 (0)