Command-line Scripts
Most of the interface tasks can be run at the command line.
The scripts included here include the following functionality:
- Data conversion
- MusicXML validation
- MusicXML file compression
- Displaying diff between MusicXML files
- Bulk processing of files
The scripts
These are the names of the scripts included with the installation.
Note the naming convention using capital letters.
Specifically, this distinguishes
musicXml2Ly included here, from LilyPond's packaged executable musicxml2ly.
db2Ly: converts a MusicXML database record to a LilyPond file.db2MusicXml: converts a MusicXML database record to a MusicXML file.db2Pdf: converts a MusicXML database record to a PDF file.ly2Pdf: converts a LilyPond file to a PDF file.musicXml2Db: converts a MusicXML file to a MusicXML database record.musicXml2Ly: converts a MusicXML file to a LilyPond file.musicXml2Pdf: converts a MusicXML file to a PDF file.musicXmlBulk: executes multiple script runs for multiple files, score names, and score IDs.musicXmlCompress: compresses and packages an uncompressed MusicXML file as a .mxl file.musicXmlDiff: displays the difference between two MusicXML file.musicXmlProcess: runs a script for multiple files.musicXmlValidate: validates a MusicXML file against the MusicXML 4.0 schema.
Interface settings requirements
- Conversion scripts that use the database (scripts db2* and *2Db) require that database connection info first be set in the tasks interface under the "DB Settings" tab.
- Converting to PDF uses LilyPond for the conversion, and so requires both a LilyPond installation and setting the LilyPond location in the tasks interface under the "LilyPond/PDF" tab.