Skip to content

Commit

Permalink
Fix another comparison bug that crashes visualization.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregchapman-dev committed Apr 7, 2022
1 parent df5f987 commit 7981e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musicdiff/comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def _generic_leveinsthein_diff(original, compare_to, note1, note2, which):
original, compare_to[1:], note1, note2, which
)
cost["ins" + which] += 1
op_list["ins" + which].append(("ins" + which, None, compare_to[0], 1))
op_list["ins" + which].append(("ins" + which, note1, note2, 1))
# edit-pitch
op_list["edit" + which], cost["edit" + which] = Comparison._generic_leveinsthein_diff(
original[1:], compare_to[1:], note1, note2, which
Expand Down

0 comments on commit 7981e5a

Please sign in to comment.