Skill 详情

music-analyze

分析本地音频文件,提取节奏、情感、音色、调性、歌词和色彩方案,输出为结构化 JSON。

匹配类型可能匹配已针对 音乐生成 审核
来源benzema216/​music-analyzer外部来源
报告安装量4仅表示受欢迎程度

使用前先检查

自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。

已保存的来源预览

SKILL.md

这段内容是审核时保存的快照。外部来源才是完整且最新的版本。

---
name: music-analyze
description: Full music analysis — extracts rhythm, emotion, timbre, tonality, lyrics and outputs structured JSON
user_invocable: true
---

# /music-analyze — Full Music Analysis

Analyze a local audio file and output a comprehensive structured JSON containing rhythm, emotion, timbre, tonality, lyrics, onset, and color palette data.

## Usage

```
/music-analyze <audio_file_path>
```

## Accepted Formats
MP3, WAV, FLAC, OGG, M4A, AAC, WMA

## Steps

1. Validate the audio file path exists and is a supported format
2. Run the full analysis pipeline:

```bash
python3 -m music_analyzer analyze "<audio_file_path>"
```

3. Parse the JSON output and present a structured summary to the user:
   - **Rhythm**: BPM, time signature, song structure sections
   - **Emotion**: Primary mood, energy level, valence, genre
   - **Timbre**: Brightness, warmth, dynamic range, MFCC summary
   - **Tonality**: Key, mode, chord progression highlights
   - **Lyrics**: Whether vocals detected, language, transcription preview
   - **Onsets**: Onset rate (for visual sync reference)
   - **Color Palette**: Suggested colors based on mood

4. If the user wants to generate Dreamina prompts or storyboards, suggest:
   - `/music-to-dreamina` for Dreamina image/video generation prompts
   - `/music-to-storyboard` for shot-by-shot storyboard
   - `/music-color-palette` for detailed color scheme

## Options

- Add `--no-cache` to force re-analysis (skip cached results)
- Add `--no-separation` to skip Demucs source separation (faster)
- Add `--output <path>` to save JSON to a specific file

## Output

The analysis JSON follows the `MusicAnalysisResult` schema and can be saved and reused as input for the formatter commands (dreamina, storyboard, color-palette).

## Error Handling

- If librosa is not installed, instruct user: `pip install -e ~/.claude/plugins/music-analyzer/src/`
- If optional features are missing, the tool will degrade gracefully and note which tier is active (lite/standard/full)
在 GitHub 阅读完整来源 (打开外部页面)
相关上下文

相关工作