music21.musicxml.archiveTools

Tools for compressing and decompressing musicxml files.

Functions

music21.musicxml.archiveTools.compressAllXMLFiles(*, deleteOriginal=False)

Takes all filenames in corpus.paths and runs music21.musicxml.archiveTools.compressXML() on each. If the musicXML files are compressed, the originals are deleted from the system.

music21.musicxml.archiveTools.compressXML(filename, *, deleteOriginal=False)

Takes a filename, and if the filename corresponds to a musicXML file with an .xml extension, creates a corresponding compressed .mxl file in the same directory.

If deleteOriginal is set to True, the original musicXML file is deleted from the system.

music21.musicxml.archiveTools.uncompressMXL(filename, deleteOriginal=False)

Takes a filename, and if the filename corresponds to a compressed musicXML file with an .mxl extension, creates a corresponding uncompressed .xml file in the same directory.

If deleteOriginal is set to True, the original compressed musicXML file is deleted from the system.