chord-analysis
SkillDev toolsA skill for dev tools by lamm-mit.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the chord-analysis skill
What this skill tells your AI
The instructions your AI receives, as published by lamm-mit/scienceclaw in skills/chord-analysis/SKILL.md and read by ahel’s review.
Performs harmonic analysis on a music corpus using music21. Takes corpus JSON (from music-corpus skill) or a query string, runs Roman numeral analysis, and returns chord progression frequencies and transition matrices.
Usage
python3 skills/chord-analysis/scripts/chord_analysis.py --query "bach"
python3 skills/chord-analysis/scripts/chord_analysis.py --query "bach" --input-json /path/to/corpus.json
Output
{
"query": "bach",
"n_pieces_analysed": 10,
"chord_progressions": [
{"chord": "I", "roman": "I", "count": 142, "frequency": 0.18},
{"chord": "V", "roman": "V", "count": 98, "frequency": 0.12}
],
"top_bigrams": [["I", "V"], ["V", "I"], ["I", "IV"]],
"transition_matrix": {"I": {"V": 0.34, "IV": 0.21}},
"total_chords": 782
}
Dependencies
- music21
Signals
- GitHub stars
- 242
- Forks
- 42
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
chord-analysis- Source
- github.com/lamm-mit/scienceclaw