A Toolkit for Computer-Aided Musical Analysis and Computational Musicology.
Actively maintained. Last release 4 weeks ago, commits in 24 of the last 26 weeks. A safe choice.
pip install music21music21
music21 -- A Toolkit for Computer-Aided Musical Analysis and
Computational Musicology
Copyright © 2006-2026 Michael Scott Asato Cuthbert
Released under the BSD (3-clause) license. See LICENSE and below.
For more information, visit: https://www.music21.org/music21docs/
To try it out, visit: https://tinyurl.com/m21colab (run all to set up an environment for the latest release)
And to install, see: https://www.music21.org/music21docs/usersGuide/usersGuide_01_installing.html
Music21 runs on Python 3.11+. (Use music21 version 4 on Python 2 or Py3.4, v5
on Py3.5, v6 on Py3.6, v7 on Py3.7, v8 on Py3.8/Py3.9, and v9 on Py3.10)
Documentation
Mailing list
See: https://groups.google.com/forum/#!forum/music21list
Contributing Guide
Community Code of Conduct
Music21 encourages contributions, discussions, and usage from all people interested in
music and computers. This encouragement extends to all people regardless of (among other aspects)
gender, race, sexual orientation, disability, religion, appearance, veteran status,
gender identity, socioeconomic status, or nationality.
Members of the community will strive to be friendly, patient, and welcoming, especially of viewpoints and experiences different from our own. We reject harassment and contributions (in mail, comments, or code) that belittle individuals or groups of people.