Unrolling a sheet into a linear sequence #453
-
I am wondering if there are published, well-known algorithms for "unrolling" a sheet music. By this I mean converting it to a linear sequence of musical events, without repetitions or loops - e.g. a MIDI stream. I had to implement such an algorithm in my MusicXML to MIDI accompaniment generator project. To help validate it, I added a fairly involved test sheet and tested my output against MuseScore's. But having a published reference would be even better in terms of validation and comprehensiveness. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I don't know of any such publication offhand. Since MuseScore code is open source, it seems it could be possible to write up their algorithm somewhere, with appropriate credit. |
Beta Was this translation helpful? Give feedback.
Here's an XSL script that unrolls a MusicXML file to another MusicXML file that contains no jumps or repeats. I would love if someone else could test it.