music-tonality

📁 benzema216/dreamina-claude-skills 📅 8 days ago
3
总安装量
3
周安装量
#61297
全站排名
安装命令
npx skills add https://github.com/benzema216/dreamina-claude-skills --skill music-tonality

Agent 安装分布

opencode 2
claude-code 2
replit 1
trae 1
kimi-cli 1

Skill 文档

/music-tonality — Tonality & Harmony Analysis

Detect musical key, mode, chord progression, and melody pitch contour.

Usage

/music-tonality <audio_file_path>

Steps

  1. Validate the audio file path
  2. Run tonality analysis:
python3 -m music_analyzer tonality "<audio_file_path>"
  1. 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
key Estimated key (e.g. “C major”)
key_confidence Confidence 0-1
mode “major” or “minor”
chords Chord events with time, duration, label
melody_contour Sampled pitch values in Hz