Skip to content

Commit

Permalink
Fixed note range
Browse files Browse the repository at this point in the history
  • Loading branch information
elsoazemelet committed Nov 6, 2023
1 parent b7b4222 commit aaae0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/main/panels/MidiMonitor/MidiMonitor.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class MusicalNotes {
];
static FromInt(int_value) {
return (
this.#musNotes[Math.floor(int_value % 12)] + Math.floor(int_value / 12)
this.#musNotes[Math.floor(int_value % 12)] + (Math.floor(int_value / 12) - 1)
);
}
}
Expand Down

0 comments on commit aaae0ed

Please sign in to comment.