TSM diff: A new Parallel-Tree-Traversal Algorithm for the Comparison of Music Score Files
Xiaobo Wang, Florent Jacquemard
Abstract
Music score files are more difficult to compare than their text-based equivalents, as their content is more complex and organised into hierarchical structures. This explains the lack of tools for processing music scores similar to the widely used old Unix diff command. We propose a new algorithm and tool for comparing digital music scores in various encodings, such as MusicXML or MEI, based on a graph-structured abstract representation called Tree Score Model (TSM). Given two scores, after conversion into TSM, our procedure calculates jointly: A list of differences, localised by time positions in the input scores; A time distance, cumulated duration of time-spans where scores differ; An edit distance, called surface distance, based on notational attributes not related to time. The two later measures are normalised and combined into a similarity distance between scores. Our procedure has been implemented in C++ and is available as a Python module. Our first experiments have shown a very good efficiency even on challenging data. As a proof of concept, we propose two demos based on different versions of some Mozart's piano sonata, and transcriptions of monophonic soli on the same jazz standards by different performers. https://tsm-diff-lbd-7a7e2a.gitlab.io/demo.html
Create a lesson
Related papers
Lab2Sim: Turning Real-World Experiment Videos into Interactive Virtual Experiments
Xusen Hei, Jiali Chen, Jinyu Yang et al.
Multimodal Concert Video Editing: System Design and Exploratory Evaluation
Lennart Schiweck, Adrian Kempf, Michelle Retig et al.
MMFact: Simplifying Multimodal Misinformation Detection with Shared Resources and Tools
Yuchen Miao, Zijun Wang, Mingtai Zhang et al.
AdShot: Benchmarking Multimodal Large Language Models for Video Advertisement Clipping
Wen Xie, Om Rastogi, Sai Siddhartha Vivek Dhir Rangoju et al.
AGF-Net: A Robust Multimodal Emotion Recognition Model for Asynchronous Audio-Visual Signals Based on Predictive Dynamic Fusion with Negative Learning
Chuan Han Li, Yun Chien Cheng
Guess and Send: World-Model-Guided Semantic Packet Transmission for Robust Video Perception
Yan Gong, Zheng Chu, Wei Koong Chai et al.