LilyPond Application Usage: 4.3.2 Invoking musicxml2ly

### 4.3.2 Invoking `musicxml2ly`

MusicXML is an XML dialect for representing music notation.

`musicxml2ly` extracts the notes, articulations, score structure, lyrics, etc. from part-wise MusicXML files, and writes them to a ‘`.ly`’ file. It is invoked from the command-line.

It is invoked from the command-line as follows,

>     musicxml2ly [option]… xml-file

Note that by ‘command-line’, we mean the command line of the operating system. See Converting from other formats, for more information about this.

If the given filename is ‘`-`’, `musicxml2ly` reads input from the command line.

The following options are supported by `musicxml2ly`:

`-a, --absolute`

  convert pitches in absolute mode.

`-h,--help`

  print usage and option summary.

`-l, --language=LANG`

  use LANG for pitch names, e.g. ’deutsch’ for note names in German.

`--lxml`

  use the lxml.etree Python package for XML-parsing; uses less memory and cpu time.

`--nd --no-articulation-directions`

  do not convert directions (`^`, `_` or `-`) for articulations, dynamics, etc.

`--no-beaming`

  do not convert beaming information, use LilyPond’s automatic beaming instead.

`-o,--output=file`

  set output filename to file. If file is ‘`-`’, the output will be printed on stdout. If not given, xml-file‘`.ly`’ will be used.

`-r,--relative`

  convert pitches in relative mode (default).

`-v,--verbose`

  be verbose.

`--version`

  print version information.

`-z,--compressed`

  input file is a zip-compressed MusicXML file.

其它语言：deutsch, español, français, magyar, italiano, 日本語。

#### LilyPond — Usage