infojunkie / musicxml-midi

MusicXML to MIDI converter via Musical MIDI Accompaniment (MMA).
https://blog.karimratib.me/demos/musicxml/
GNU General Public License v3.0
12 stars 1 forks source link

Create valid MusicXML from W3C examples #39

Closed infojunkie closed 10 months ago

infojunkie commented 10 months ago

Some examples at W3C MusicXML only present score fragments, instead of valid scores.

The musicxml-examples.js script in this repo currently recreates the fragments as-is, leading to invalid MusicXML files in those cases.

In order to reuse those files downstream, e.g. to test parsers and renderers, the script should create valid MusicXML files. Ref https://github.com/stringsync/vexml/issues/163 for a specific use case.

infojunkie commented 10 months ago

To test whether an output file is valid MusicXML, use the included npm script npm run validate:musicxml /path/to/file.

Running

for f in test/data/examples/*.musicxml; do npm run validate:musicxml "$f" 2>> examples.log; done

I get the attached log file. Search for validates within this file to find currently valid scores.

I will analyze the log to fix the common tags present in the fragments.