Compare two music XML files

20 views
Skip to first unread message

Joe Skerritt

unread,
Mar 14, 2023, 7:01:45 PM3/14/23
to music21
Hi - I am planning to write a Python program using music21 that can compare two music XML files and output a quantitative value on the level of similarity and/or highlight specific areas where there were differences.

The goal is to use this as a tool to improve piano performance by comparing the output from a piano student with the output from the original piece.  My plan is to input performance data from a MIDI enabled piano keyboard using the Musescore app.  I would then compare this input to the original piece from Musecore (either from their library of pieces if it exists or by entering myself manually from sheet music).  My concept is that both can then be exported to Music XML files and run through a comparison program.

Does this sound feasible with music21?
Are there already modules in music21 that can run this type of comparison?

Are there better ways to do this?  This is my first time exploring MIDI, Musescore, and music21,  but the potential looks very interesting.

Thanks.

Greg Chapman

unread,
Mar 14, 2023, 9:25:25 PM3/14/23
to music...@googlegroups.com

It is focused more on notation differences, but it might be useful as a starting point. 

Greg

On Mar 14, 2023, at 4:01 PM, Joe Skerritt <mtb...@gmail.com> wrote:

Hi - I am planning to write a Python program using music21 that can compare two music XML files and output a quantitative value on the level of similarity and/or highlight specific areas where there were differences.
--
--
To Post: email music...@googlegroups.com
To Unsubscribe: email music21list...@googlegroups.com
Archives, Options, etc: http://groups.google.com/group/music21list

---
You received this message because you are subscribed to the Google Groups "music21" group.
To unsubscribe from this group and stop receiving emails from it, send an email to music21list...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/music21list/eb7b31f5-87a5-4e60-ae9c-22bdef4b8541n%40googlegroups.com.

Joe Skerritt

unread,
Mar 14, 2023, 11:24:05 PM3/14/23
to music21
Thanks - looks pretty awesome - will check it out.

On initial testing of the Musescore application, it seemed to not work well converting real time playing MIDI input into notation.  I think I may explore direct audio recording comparison to see if there is a way to compare two recordings.

Reply all
Reply to author
Forward
0 new messages