Skip to content

Commit 7981e5a

Browse files
Fix another comparison bug that crashes visualization.
1 parent df5f987 commit 7981e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

musicdiff/comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def _generic_leveinsthein_diff(original, compare_to, note1, note2, which):
768768
original, compare_to[1:], note1, note2, which
769769
)
770770
cost["ins" + which] += 1
771-
op_list["ins" + which].append(("ins" + which, None, compare_to[0], 1))
771+
op_list["ins" + which].append(("ins" + which, note1, note2, 1))
772772
# edit-pitch
773773
op_list["edit" + which], cost["edit" + which] = Comparison._generic_leveinsthein_diff(
774774
original[1:], compare_to[1:], note1, note2, which

0 commit comments

Comments
 (0)