From 1fd1486c5933ab44a3ba4be02849cdce2afdf967 Mon Sep 17 00:00:00 2001 From: Xiaohan-Tian <157918347+Xiaohan-Tian@users.noreply.github.com> Date: Thu, 28 Aug 2025 19:44:21 -0700 Subject: [PATCH] fix: preserve overlapping notes with same end time in ABC conversion --- src/util/abcNotationUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/abcNotationUtil.ts b/src/util/abcNotationUtil.ts index 26c4e41..f99dcfe 100644 --- a/src/util/abcNotationUtil.ts +++ b/src/util/abcNotationUtil.ts @@ -261,7 +261,7 @@ function formatABCBody(notes: KGMidiNote[], relativeStartBeat: number, timeSigna while (nextIndex < abcNotes.length && currentNote.endTick > abcNotes[nextIndex].startTick) { const nextNote = abcNotes[nextIndex]; - if (currentNote.endTick >= nextNote.endTick) { + if (currentNote.endTick > nextNote.endTick) { // Current note completely covers next note - remove next note abcNotes.splice(nextIndex, 1); // Don't increment nextIndex since we removed an element