Skip to content

Commit

Permalink
Fix music._bufferToMelody octave calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwork committed Nov 28, 2024
1 parent d1c862a commit 83f7f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ namespace music {
current = notes.charAt(note);
if (current === "#") current = notes.charAt(note - 1) + current

octave = Math.idiv((melody[i] - 23), 12)
octave = Math.idiv((melody[i] - 24), 12)
}

const duration = melody[i + 1];
Expand Down

0 comments on commit 83f7f93

Please sign in to comment.