/install chord-analyzer
Chord Analyzer Skill
Analyze music audio files to extract chord progressions, key signature, tempo, and song structure.
When to Use
✅ USE this skill when:
- User wants to analyze a song's chords and harmony
- "What are the chords in this song?"
- "Analyze this audio file"
- "Extract the chord progression"
- "What key is this song in?"
- User provides an audio file path and asks for musical analysis
When NOT to Use
❌ DON'T use this skill when:
- Only wants general music info (lyrics, artist) → use web search
- Wants to generate music → use music generation skills
- Needs professional-grade transcription → recommend specialized software (Chordify, Hookpad)
- Requires detailed instrument separation → use dedicated source separation tools
Supported Formats
- Audio: mp3, wav, m4a, flac, ogg
- Duration: Works best for songs under 5 minutes
Installation
First time use requires installing dependencies:
pip3 install librosa numpy scipy scikit-learn soundfile
Usage
Basic Analysis
# Analyze an audio file
python3 chord_analyzer.py
# Edit the script to change the audio path
# Default: /Users/chentiewen/Music/网易云音乐/example.mp3
Script Integration
Copy the chord_analyzer.py script to your workspace and modify the audio_path variable:
audio_path = "/path/to/your/song.mp3"
result = analyze_audio(audio_path)
Output
The analyzer provides:
- Key Signature: Detected musical key (e.g., C, F#m, G)
- Tempo: Speed in BPM with rhythm classification
- Chord Progression: Complete chord sequence with timestamps
- Chord Statistics: Most frequently used chords
- Song Structure: Intro/Verse/Outro segmentation (basic)
Sample Output
调性: F#m
速度: 123.0 BPM
节奏: 快板 (Allegro)
和弦走向:
F#mdim → A → D → Bm → E → A → D → Bm → E ...
主要和弦:
A: 15次 (20.3%)
E: 14次 (18.9%)
D: 12次 (16.2%)
How It Works
- Load Audio: Uses
librosa.load()to read audio at 22.05kHz - Extract Chroma: Computes chroma features (pitch class profiles) using STFT
- Detect Key: Analyzes chroma energy across all 12 keys (major + minor)
- Track Tempo: Uses
librosa.beat.beat_track()for tempo detection - Analyze Chords: Samples chroma at measure boundaries and matches against chord templates
- Merge & Simplify: Combines consecutive identical chords
Limitations
- Accuracy: Chord detection is approximated; not professional-grade
- Complexity: Struggles with heavily layered or distorted music
- Structure: Simple segmentation (not verse/chorus detection)
- Melody: Does not extract melodic lines or instrument parts
- Chord Extensions: Detects basic triads (major, minor, diminished), not 7th/9th chords
For Complete Transcription
For professional music transcription, recommend:
- Chordify: https://chordify.net (online chord detection)
- Hookpad: https://www.hooktheory.com/hookpad (theory + chords)
- MuseScore: https://musescore.org (manual transcription)
- Capo: https://capoapp.com (slow down + chord detection)
Notes
- Analysis takes ~10-30 seconds depending on song length
- Best results with clear, non-distorted audio
- Works best for pop/rock/folk styles with clear harmony
- Not suitable for atonal, experimental, or heavily percussive music
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chord-analyzer - 安装完成后,直接呼叫该 Skill 的名称或使用
/chord-analyzer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Chord Analyzer 是什么?
Analyze music audio files to extract chord progressions, key signature, tempo, and song structure. Use when user wants to identify chords, analyze a song's h... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 177 次。
如何安装 Chord Analyzer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chord-analyzer」即可一键安装,无需额外配置。
Chord Analyzer 是免费的吗?
是的,Chord Analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Chord Analyzer 支持哪些平台?
Chord Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chord Analyzer?
由 ctwww(@ctwww)开发并维护,当前版本 v1.0.0。