From 6b4a9a289905a66eadc12ec3a4948aa8cfc51cec Mon Sep 17 00:00:00 2001 From: Martin Williams Date: Mon, 2 Dec 2024 17:53:21 +0000 Subject: [PATCH] Fix music._bufferToMelody octave calculation (#6023) --- libs/core/music.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/music.ts b/libs/core/music.ts index 38023fb4cd5..1d910e44bc4 100644 --- a/libs/core/music.ts +++ b/libs/core/music.ts @@ -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];