Skip to main content

MusicXML linearization for img2seq model training

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linearized_musicxml-1.0.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linearized_musicxml-1.0.0-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file linearized_musicxml-1.0.0.tar.gz.

File metadata

  • Download URL: linearized_musicxml-1.0.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for linearized_musicxml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1248881382d068960f637c3c7e2314633da5a1196a9a46fd7e5ce015911f25e6
MD5 05373143ce9b6a900caa3ffb8bc76829
BLAKE2b-256 41f3ea683547b40fa94f584b07c26795729d7cb44bf5392ab53ddcb5db726d1e

See more details on using hashes here.

File details

Details for the file linearized_musicxml-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for linearized_musicxml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce82b4d1721c1d6c9b93009f13e6a6b6868620252723a58b002280f0af966c8
MD5 0d8ac32dafd28b31832c1ebb22df9c44
BLAKE2b-256 32d25d40d90c7abd2f4f0eab20bcff321e36f8d7c961aed5941b4705af1ad890

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page