music-tonality
Original:🇺🇸 English
Translated
Analyze tonality — key detection, chord progression, melody contour
1installs
Added on
NPX Install
npx skill4agent add benzema216/dreamina-claude-skills music-tonalityTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →/music-tonality — Tonality & Harmony Analysis
Detect musical key, mode, chord progression, and melody pitch contour.
Usage
/music-tonality <audio_file_path>Steps
- Validate the audio file path
- Run tonality analysis:
bash
python3 -m music_analyzer tonality "<audio_file_path>"- Present results:
- Key: Detected key and mode (e.g. "C major", "A minor")
- Confidence: Key detection confidence
- Chord Progression: Sequence of chords with timestamps
- Melody Contour: Simplified pitch contour (sampled Hz values)
Detection Methods
- Essentia (standard/full tier): Uses essentia's KeyExtractor and ChordsDetection
- Librosa (lite tier): Krumhansl-Schmuckler key profiles + template-based chord matching
Output Fields
| Field | Description |
|---|---|
| Estimated key (e.g. "C major") |
| Confidence 0-1 |
| "major" or "minor" |
| Chord events with time, duration, label |
| Sampled pitch values in Hz |