music21-score
Installation
SKILL.md
Computational Musicology with music21
TL;DR — Analyse musical scores programmatically: load MusicXML/MIDI/ABC/Kern, run Roman numeral harmonic analysis, compute melodic contour, detect counterpoint errors, and query the built-in Bach chorale corpus.
When to Use
Use this Skill whenever you need to:
- Parse and analyse symbolic music files (MusicXML, MIDI, ABC notation, Humdrum Kern)
- Extract harmonic progressions and Roman numeral sequences from tonal music
- Compute melodic contour reduction and interval statistics
- Detect counterpoint rule violations (parallel fifths/octaves, voice crossing)
- Query the music21 built-in corpus (Bach chorales, classical works) for statistical analysis
- Compare melodic similarity across pieces using edit distance on interval sequences
- Build n-gram models of harmonic progressions for style analysis