Skip to main content

Demonstrations and tools for music21.

Project description

music21-tools

Tools and Demonstrations for music21 created by Cuthbert and his lab (cuthbertLab)

Copyright © 2004-2026 Michael Scott Asato Cuthbert, released under a BSD (3-clause) license.

Many of these Demonstrations were formerly in the music21 package.
They may require external packages to make them work, and some may require editing to make them work with the latest version of music21. I will attempt to update them with each new major release of music21, but there is no guarantee that they will work with any development versions along the way.

Many thanks to Christopher Ariza, Beth Hadley, Jordi Bartolomé, Daniel Manesh, Hugh Zabriskie, Jackie Rogoff, Lars Johnson, Varun Ramaswamy, Nina C. Young, Thomas Carr, Jose Cabal-Ugaz, Lisa D. Friedland, Norman Schmidt, and many others who contributed to this project.

Historical notes

Older versions of this repo included bhadley/mrjobaws/, a demonstration of using mrjob to run music21 feature extraction as a Hadoop MapReduce job on Amazon EMR. mrjob has been unmaintained since 2020 and the EMR workflow is no longer practical, so the code has been removed. It can still be found in git history at commit 311cbff under bhadley/mrjobaws/.

Older versions also included webapps/ (formerly music21.webapps), a demonstration of building webserver-based music21 tools. It depended on a version of NoteFlight that has not been available for over ten years, so the code has been removed. It can still be found in git history at commit 311cbff under webapps/. The project is described in:

Cuthbert, Michael Scott, Beth Hadley, Lars Johnson, and Christopher Reyes. "Interoperable Digital Musicology Research via music21 Web Applications," Proceedings of the Joint CLARIN-D/DARIAH Workshop, Service-oriented Architectures (SOAs) for the Humanities: Solutions and Impacts at the Digital Humanities Conference, Hamburg, Germany, July 2012.

PDF available at trecento.com.

Running the tests

This project uses uv and pytest. From the repository root:

# install (creates .venv/ with music21 >= 10 and dev dependencies)
uv sync

# run the full test + doctest suite
uv run pytest --doctest-modules music21_tools/

To test a single module:

uv run pytest --doctest-modules music21_tools/theoryAnalysis/theoryAnalyzer.py

Contact

Michael Scott Asato Cuthbert — michael.asato.cuthbert@gmail.comtrecento.com — GitHub: @mscuthbert / cuthbertLab.

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

music21_tools-10.1.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

music21_tools-10.1.1-py3-none-any.whl (977.5 kB view details)

Uploaded Python 3

File details

Details for the file music21_tools-10.1.1.tar.gz.

File metadata

  • Download URL: music21_tools-10.1.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for music21_tools-10.1.1.tar.gz
Algorithm Hash digest
SHA256 0f803aad75047917ed97de782736d5bb254177385ec3feb65035e67ac1e724c8
MD5 87567c2cd30f82761ea16b38bead4fb4
BLAKE2b-256 7d07e59ab2a8d3bf0730a31f62cd88be3453022cb0ea14bdda2dbeffc41b6abf

See more details on using hashes here.

File details

Details for the file music21_tools-10.1.1-py3-none-any.whl.

File metadata

  • Download URL: music21_tools-10.1.1-py3-none-any.whl
  • Upload date:
  • Size: 977.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for music21_tools-10.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dc8777c4437b58f3e83326b87d6dfb535b87540d3d08195a54911fb28902859
MD5 636264c81b758643970a8f54af50fb73
BLAKE2b-256 c24568e0b6bd46dd9e99f9f0adb0885bbc0db24c55b19cbb86683f1401ed6657

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