SkillsGrove
SkillsGrove/영상 제작/Xuepoo/agent-lx-music/audio-analysis

audio-analysis

설치

$npx skills add https://github.com/Xuepoo/agent-lx-music --skill audio-analysis
$git clone --depth 1 https://github.com/Xuepoo/agent-lx-music.git /tmp/agent-lx-music && mkdir -p ~/.claude/skills && cp -r /tmp/agent-lx-music/skills/audio-analysis ~/.claude/skills/audio-analysis
이 Agent Skill을 설치해 주세요: https://github.com/Xuepoo/agent-lx-music/tree/a3fc2ca71a8658f1173a13635ed19b9459a1dce4/skills/audio-analysis — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITInspect downloaded track waves or query APIs to analyze audio parameters like BPM, Key, Energy, and Valence.
아래 SKILL.md는 Xuepoo/agent-lx-music(커밋 a3fc2ca)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Xuepoo Foter. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Audio & Music Analysis Skill

Overview

This skill guides AI agents in performing deep signal-processing analysis or metadata lookups on music tracks. By analyzing audio parameters such as BPM (Beats Per Minute), Musical Key / Scale (e.g. C Major, A Minor), and energy metrics, the agent can help users categorize playlists, match tempos for workouts or DJ sets, and explore composition structures.


Technical Analysis Approaches

Approach 1: Audio Metadata API Integration

Agents can query open music repositories (such as AcousticBrainz, Spotify Audio Features, or MusicBrainz) using song metadata to fetch precise pre-computed acoustic features.

{
  "title": "晴天",
  "singer": "周杰伦",
  "bpm": 84,
  "key": "G Major",
  "valence": 0.52,
  "energy": 0.48,
  "danceability": 0.58,
  "time_signature": "4/4"
}

Approach 2: Native Audio Waveform Extraction (CLI Signal Processing)

When the track is downloaded locally via alx download <id>, the agent can run local CLI signal processing tools (such as aubio, ffmpeg, or custom scripts using librosa / essentia / madmom models) to analyze the audio file.

1. BPM / Tempo Detection

Identify the rhythmic rate of the song:

# Using aubio CLI tool to detect tempo (BPM) on downloaded track
aubiopitch -i "/path/to/song.mp3"
aubiotempo -i "/path/to/song.mp3"

2. Key & Scale Detection

Analyze spectral pitch classes (chroma) to determine the tonic key:

# Conceptual ESSENTIA key extractor Python script
import essentia.standard as es
loader = es.MonoLoader(filename="song.flac")
audio = loader()
key_extractor = es.KeyExtractor()
key, scale, strength = key_extractor(audio)
print(f"Key: {key} {scale} (Strength: {strength})")

Agent Usage Patterns

Pattern 1: Automatic Tempo-Matched Playlist

Build a playlist with songs matching a target BPM range (e.g. 120-130 BPM for jogging):

  1. Query search cache or local music files.
  2. Filter tracks matching the desired tempo.
  3. Automatically load them into a running queue:
# Retrieve track metadata and filter for workout tempo (e.g. 125 BPM)
alx search "workout hits" --json | jq -r '.list[] | select(.bpm >= 120 and .bpm <= 130) | .id' | while read id; do
    alx queue add "$id"
done

Pattern 2: Harmonious Transition Analysis

Advise the user on key matches (Camelot Wheel / Circle of Fifths) for smooth playlist progression:

  • Track A (G Major / 9B) transitions harmoniously into Track B (D Major / 10B, C Major / 8B, or E Minor / 9A).
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Xuepoo Foter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.