Skip to content

Commit

Permalink
Fix generation of the MIDI note to key code conversion table
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Apr 29, 2024
1 parent e0bd87c commit d667339
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/processor/siopm_ref_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ void SiOPMRefTable::_create_eg_tables() {

void SiOPMRefTable::_create_pg_tables() {
// MIDI Note Number -> Key Code table
for (int i = 0; i < NOTE_TABLE_SIZE; i++) {
int j = i - (i >> 2);

for (int i = 0, j = 0; j < NOTE_TABLE_SIZE; i++, j = i - (i >> 2)) {
if (i < 16) {
note_number_to_key_code[j] = i;
} else if (i < KEY_CODE_TABLE_SIZE) {
Expand Down

0 comments on commit d667339

Please sign in to comment.