Closed infojunkie closed 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.
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.