]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Add support for compressed MusicXML files (command-line option -z)
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 14 Nov 2007 15:17:51 +0000 (16:17 +0100)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 14 Nov 2007 15:17:51 +0000 (16:17 +0100)
commit22ce88dcb7bb86459f3ec1f631607cb09e88841c
tree3aa1640a9286f05b6a1dcd1a4f2cec4cd091ecb4
parent3d032f4018c8efcd88094a5de3abe954a45b20fd
MusicXML: Add support for compressed MusicXML files (command-line option -z)

MusicXML also defined a compressed format, where the .xml file is
stored inside a ZIP archive (with extension .mxl) . In this case, we need to
read the META-INF/container.xml file from the archive to get the name
of the XML file inside the archive, and then load this file. Thanks
to the zipfile module and the StringIO module, implementing this was quite easy.

I also fixed some other small bugs that led to crashes.
input/regression/musicxml/20a-Compressed-MusicXML-Sample.mxl [new file with mode: 0644]
scripts/musicxml2ly.py