Metadata-Version: 2.3
Name: linearized-musicxml
Version: 1.0.0
Summary: MusicXML linearization for img2seq model training
Project-URL: Homepage, https://github.com/Jirka-Mayer/lmx
Project-URL: Issues, https://github.com/Jirka-Mayer/lmx/issues
Author-email: Jiří Mayer <mayer@ufal.mff.cuni.cz>
License-File: LICENSE
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# Linearized MusicXML (LMX)

A python package for linearizing and de-linearizing MusicXML into a sequential format so that it can be used for training img2seq machine learning models.

Install via:

```
pip3 install linearized-musicxml
```

Use from the command line:

```bash
# MusicXML -> LMX (accepts both XML and MXL)
python3 -m lmx linearize example.musicxml # produces example.lmx
python3 -m lmx linearize example.mxl # produces example.lmx
cat example.musicxml | python3 -m lmx linearize - # prints to stdout (only uncompressed XML input)

# LMX -> MusicXML (only uncompressed XML output available)
python3 -m lmx delinearize example.lmx # produces example.musicxml
cat example.lmx | python3 -m lmx delinearize - # prints to stdout
```

## Acknowledgement

This package uses code first developed for an ICDAR 2024 paper by Mayer et al. See the acknowledgement there: https://github.com/ufal/olimpic-icdar24
