Skip to main content

CAMAT

PyPI version Python versions License

CAMAT is a Python toolkit for symbolic music parsing, analysis, pattern search, and score rendering.

Supports Python 3.11+

Installation

pip install camat

What Is Included

  • Verovio-backed common-notation MEI parsing (the default parser).
  • Compatibility parsers for partitura and music21.
  • Timeline/rap Humdrum parsing with rhythm-only duration and onset-position summaries.
  • Pattern search and similarity utilities.
  • Piano-roll and overlay visualization helpers.
  • Verovio-based rendering utilities.

Parser Guidance

For common music notation, CAMAT now defaults to the verovio backend. The analysis pipeline is MEI-first, so call parse_files(...) without a parsing_backend for .mei sources, or select it explicitly with parsing_backend="verovio" / "vrv".

Convert non-MEI sources before parsing. Verovio-native inputs are converted directly; other music21-readable formats go through music21 -> MusicXML -> Verovio -> MEI. MuseScore-native files use MuseScore for the MusicXML export. The conversion workflow is available in scripts/test_verovio_conversion.py and testing_verovio_conversion.ipynb.

The partitura backend remains the ground-truth/reference implementation for parser parity tests. The music21 backend remains available for compatibility and as the converter's import bridge, but neither is the registry default.

For MCFlow-style rap Humdrum timelines, use parse_files(..., parsing_backend="timeline"). This returns df_timeline rows with stable MEI ids and optional rhythm-analysis columns suitable for timeline MEI rendering.

Documentation

This repo includes an MkDocs project in docs/ and a Read the Docs config in .readthedocs.yaml.

Local preview:

pip install -r docs/requirements.txt
mkdocs serve

Then open http://127.0.0.1:8000/.

Release Testing

The release gate builds the wheel and installs it into fresh virtual environments for Python 3.11 through 3.14:

python scripts/test_release_matrix.py

See Release testing for interpreter discovery, partial matrix commands, smoke-test coverage, and the tag-to-PyPI checklist.

Repository Layout

  • camat/: package source used for PyPI distribution.
  • CAMAT_old/: legacy development notebooks and experiments.
  • CHANGELOG.md: release notes.
  • test_corpus/: test data and source links.

License

MIT (see LICENSE).

Metadata

Release files for camat 0.1.12

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

Source distribution (sdist)

Source distribution for camat 0.1.12
File Size Uploaded
camat-0.1.12.tar.gz 185.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for camat 0.1.12
File Interpreter ABI Platform
camat-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 368.2 kB

Release files / camat-0.1.12.tar.gz

Download URL camat-0.1.12.tar.gz
Size 185.8 kB
Tags Source
SHA-256 checksum
How to use checksums
338677f0c9909844ad33216be3f03e5f238f4378d7fb0073d302796bcde22934
BLAKE2b-256 checksum
How to use checksums
9488c6b3453286f0cedf6a06ac263367cef1444e34bf3b164c835cd077f78701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release files / camat-0.1.12-py3-none-any.whl

Download URL camat-0.1.12-py3-none-any.whl
Size 182.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06f79ffab70f6080deef31c764add3bd2b524acd340dafae9d695d15cf0d5475
BLAKE2b-256 checksum
How to use checksums
3a1d480496d5e7dab58f716d17b8f5c0ce38a59352ccffa788a8f6bde16d3dd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.13

2 release files

This release

0.1.12 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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