Skip to content

Commit 8a5d74b

Browse files
Fix issue #16, where the op_list inappropriately ends up with a note index within a chord.
1 parent 7915d4d commit 8a5d74b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

musicdiff/comparison.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,13 +1214,13 @@ def _notes_set_distance(original: list[AnnNote], compare_to: list[AnnNote]):
12141214
if unpaired_orig_notes:
12151215
for an in unpaired_orig_notes:
12161216
cost += an.notation_size()
1217-
op_list.append(("notedel", an, None, an.notation_size(), an.note_idx_in_chord))
1217+
op_list.append(("notedel", an, None, an.notation_size()))
12181218

12191219
# noteins
12201220
if unpaired_comp_notes:
12211221
for an in unpaired_comp_notes:
12221222
cost += an.notation_size()
1223-
op_list.append(("noteins", None, an, an.notation_size(), an.note_idx_in_chord))
1223+
op_list.append(("noteins", None, an, an.notation_size()))
12241224

12251225
# notesub
12261226
if paired_notes:

0 commit comments

Comments
 (0)