Skip to content

MusicDiff crashes on some input #16

@rigaux

Description

@rigaux

Hi there

We start running musicdiff on our OMR results. We compare two MEI: a first one, produced by our fellow musicologists, and another one, produced by a workflow OMR -> music21 -> MEI using your converter21 package. We would like to use (maybe with some adaptation) the metric OMR-NED published this year at ISMIR.

We obtain the following error on one of our inputs:

Traceback (most recent call last):
File "/Users/philippe/Documents/workspace/utilities/diff/diff_utils.py", line 101, in
main()
File "/Users/philippe/Documents/workspace/utilities/diff/diff_utils.py", line 75, in main
Visualization.mark_diffs(score1, score2, diff_list)
File "/Users/philippe/.pyenv/versions/neuma_env/lib/python3.12/site-packages/musicdiff/visualization.py", line 679, in mark_diffs
note1 = noteOrChord1.notes[op[4]]
^^^^^^^^^^^^^^^^^^
AttributeError: 'Note' object has no attribute 'notes'. Did you mean: 'sites'?

I send you both MEI files attached

predicted.mei.xml

ground_truth.mei.xml

Thanks for your help

Philippe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions