This gist contains some tools I wrote to solve a problem I ran into when archiving folk tunes. Once I had 30+ tunes in the archive, it became hard to tell whether any particular tune I came across was already in the archive or not, and I'm usually not able to remember a tune note-for-note. The solution to this problem was to build a tool that could search for music scores based on an approximately-similar snippet.
These tools are tuned to my particular setup, but the core should be generalizable. Here are the assumptions the code makes:
- Scores are stored as compressed MusicXML (.mxl) files
- The scores and both scripts are stored in the same directory