Skip to main content

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:

# 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

Metadata

Release files for linearized-musicxml 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linearized-musicxml 1.0.0
File Size Uploaded Provenance Actions
linearized_musicxml-1.0.0.tar.gz 23.8 kB Without provenance Details for linearized_musicxml-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linearized-musicxml 1.0.0
File Interpreter ABI Platform Actions
linearized_musicxml-1.0.0-py3-none-any.whl Python 3 none any Details for linearized_musicxml-1.0.0-py3-none-any.whl

Total release size: 52.5 kB

Release files / linearized_musicxml-1.0.0.tar.gz

Download URL linearized_musicxml-1.0.0.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1248881382d068960f637c3c7e2314633da5a1196a9a46fd7e5ce015911f25e6
BLAKE2b-256 checksum
How to use checksums
41f3ea683547b40fa94f584b07c26795729d7cb44bf5392ab53ddcb5db726d1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Release files / linearized_musicxml-1.0.0-py3-none-any.whl

Download URL linearized_musicxml-1.0.0-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ce82b4d1721c1d6c9b93009f13e6a6b6868620252723a58b002280f0af966c8
BLAKE2b-256 checksum
How to use checksums
32d25d40d90c7abd2f4f0eab20bcff321e36f8d7c961aed5941b4705af1ad890
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.12

Security for linearized-musicxml 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page