
Unlocking Duration and Note Objects in music21
Michael Scott Asato Cuthbert, teaching MIT's 21M.383 Computational Music Theory and Analysis, walks through the Duration and Note modules in music21, the Python toolkit for computational musicology developed at MIT. He demonstrates how note objects store pitch and rhythmic duration internally, how to create and manipulate Duration objects directly, and how these building blocks feed into larger score analysis tasks. The session is hands-on, working through code in a Python environment rather than slides, showing how the library represents musical time and translates it into programmatic structures. It is one installment in a numbered video series built around the course's programming assignments, aimed at students who are already working with music21 and need to understand its object model rather than newcomers wanting a general music theory overview.