analyze_harmony
Analyze music project harmony by detecting key, scale, chords, Roman numerals, and cadences. Exports MIDI, filters drum tracks, and uses music21 to provide confidence scores and alternatives.
Instructions
Detect key/scale/chords/Roman numerals/cadences.
Exports the project's MIDI, filters drum tracks (Krumhansl detection is garbage on beats), and runs music21. Always returns a confidence + alternatives; on drum-only or non-chordal material it hedges rather than inventing harmony.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key_root | No | ||
| mode | No | ||
| key_confidence | No | music21 K-S confidence - surface it, never hide it. | |
| alternative_keys | No | ||
| roman_numerals | No | ||
| cadences | No | ||
| note | No | Hedging note when confidence is low or the project lacks chordal MIDI. |