Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: compute6-us
Views: 251
Kernel: Python 2 (SageMath)

music21 -- a toolkit for computer aided musicology

http://web.mit.edu/music21/

Music21 is a set of tools for helping scholars and other active listeners answer questions about music quickly and simply. If you’ve ever asked yourself a question like, “I wonder how often Bach does that” or “I wish I knew which band was the first to use these chords in this order,” or “I’ll bet we’d know more about Renaissance counterpoint (or Indian ragas or post-tonal pitch structures or the form of minuets) if I could write a program to automatically write more of them,” then music21 can help you with your work.

from music21 import * bwv66 = corpus.parse('bach/bwv66.6') bwv66.measures(1, 16).plot()
Image in a Jupyter notebook
bwv66.plot('histogram', 'pitchClass')
Image in a Jupyter notebook
from IPython.display import YouTubeVideo YouTubeVideo("qFlTRAhCav8")