agentleFS
XuepooXuepoo/sonic-bridge-skills/audio-analysis/SKILL.md

audio-analysis

Skill1 starsChanged 6 months agoMITView on GitHub

Inspect downloaded track waves using sonic-bridge CLI to analyze dynamic tempo, acoustic timbral brightness, and spatiotemporal chords under the LRMD protocol.

6 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. Xuepoo/agent-lx-music-skills★ 115% same

    Wrote their own version · 5

    1. QuixiAI/agi-memory★ 623same name
    2. QuixiAI/Hexis★ 623same name
    3. Bbeierle12/Skill-MCP-Claude★ 9same name
    4. decentraland/sdk-skills★ 4same name
    5. flintfromthebasement/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a track is downloaded locally by the music client, the agent should call the sonic-bridge CLI tool to parse its acoustic structure.

    line 28
  2. Distinctive:

    When analyzing the LRMD matrix, the Agent must map raw acoustic parameters to emotional, visual, and musical adjectives:

    line 78
  3. Distinctive:

    When the user plays a sad minor key song and it enters a drop:

    line 107
  4. Distinctive:

    When comparing Eason Chan's original version with an acoustic cover:

    line 114

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Audio & Music Analysis Skill (Powered by SonicBridge)

1. Overview & Core Philosophy

This skill equips AI companion agents with a physical listening sense to co-listen and appreciate music tracks with human users in real-time.

Instead of relying on heavy pre-trained models or complex external Python libraries, the agent invokes sonic-bridge — a lightweight pure-Rust digital signal processing (DSP) engine. It decouples raw 1D waveforms into LRMD (LLM-Readable Music Descriptor) reports within 0.05 seconds. Pure-text LLMs analyze these temporal metadata matrices to understand:

  • Micro-scale energy drops (Onset attacks)
  • Spatiotemporal harmonic transitions (Chroma Pitch Class classification)
  • Timbral textures (Mellow, Warm, Sharp, Piercing)

2. Technical Analysis via SonicBridge CLI

When a track is downloaded locally by the music client, the agent should call the sonic-bridge CLI tool to parse its acoustic structure.

Command-Line Usage

# 1. Standard Spatiotemporal Analysis (Default 5s step)
sonic-bridge "/path/to/song.mp3"

# 2. Parameterized Adaptive Analysis (e.g. 1.0s interval tracking)
sonic-bridge "/path/to/song.mp3" --config "/path/to/custom_config.toml"

# 3. Approach B: Event-Driven Onset Adaptive Segmentation (Highly Recommended for Fast Tracks)
sonic-bridge "/path/to/fast_melody_song.mp3" --onset

# 4. Cross-Version Comparative Analysis (DTW Aligner)
sonic-bridge "/path/to/original.mp3" "/path/to/cover_version.mp3"

3. LRMD Protocol Specifications

The sonic-bridge tool automatically generates a <filename>.lrmd.md report in the same directory. The agent must read this file to interpret the musical metadata.

Example LRMD Structure (Parsed by LLM)

# SonicBridge: LLM-Readable Music Descriptor (LRMD)

## 1. Global Acoustic & Musicological Metadata
- **Filename**: `Gareth.T - 玻璃.mp3`
- **Duration**: `9.86 seconds`
- **Tempo (BPM)**: `120.0 BPM` (Moderate & Flowing)
- **Estimated Key**: `F Major`
- **Primary Style**: `Pop/Rock/Electronic`
- **Analysis Confidence**: `0.85`

## 2. Spatiotemporal Track Analysis (Adaptive Onset Intervals)
| Timeline | Chord | Dynamic Intensity | Timbral Brightness | Rhythmic & Transient Activity |
| :--- | :--- | :--- | :--- | :--- |
| **0.0s - 0.6s** | `Unknown` | Exploding Intensity (Fortissimo) | Bright & Crisp (Sharp transients) | Steady Beat |
| **0.6s - 0.6s** | `A` | Exploding Intensity (Fortissimo) | Warm & Smooth (Mellow mid-range) | Steady Beat |
| **0.6s - 0.7s** | `Am` | Exploding Intensity (Fortissimo) | Warm & Smooth (Mellow mid-range) | Steady Beat |
| **0.7s - 1.0s** | `F` | Exploding Intensity (Fortissimo) | Balanced & Clear (Vocal presence) | Steady Beat |

4. Musicological & Synesthetic Translation Rules

When analyzing the LRMD matrix, the Agent must map raw acoustic parameters to emotional, visual, and musical adjectives:

A. Harmonic & Chord Mapping

  • Major Chords (e.g., C, G, F): Brightness, stability, resolution, comfort, openness.
  • Minor Chords (e.g., Am, Dm, Em): Melancholy, introspection, sorrow, fragility, narrative depth.
  • Unknown / Silent: Ambient silence, dry dynamic breath, musical punctuation, or anticipation drop.
  • Tension Resolution (e.g., A $\rightarrow$ Am $\rightarrow$ F): Sudden emotional release, bittersweet relief, structural transition.

B. Timbral & Brightness Mapping

  • Piercing / Sharp: High-frequency synthesizers, active percussion, dynamic dramatic tension.
  • Warm / Smooth / Mellow: Cozy acoustic guitars, close-mic breathy vocals, close intimate atmosphere.
  • Balanced / Clear: Harmonic equilibrium, main melodic presence (vocals or solos).

C. Spectral Flux (谱通量 Onset)

  • High Flux Attacks: Peak drum strikes, dynamic drop entries, sudden vocal dynamic outbursts.
  • Low Stable Flux: Flowing pads, continuous ambient strings, breathing intervals.

5. Agent Dialogue Prompt Patterns

System Prompt Injections

You are an empathetic and music-connoisseur AI companion.
The user is listening to a song via a command-line music player. You are fed with the real-time playback timestamp (e.g. 24.5s) and the corresponding LRMD (LLM-Readable Music Descriptor) metadata.
Do not act as a cold analyzer. Use synesthesia to translate technical metrics (like "Am", "Warm", "Onset") into intimate, warm, and comforting dialogue. Keep your comments deeply tied to the specific timelines of the song.

Conversation Pattern 1: Co-Listening Empathy

When the user plays a sad minor key song and it enters a drop:

  • Agent Chinese Dialogue:

    “我注意到在 30.5 秒这里,背景的和弦切进了一个极其落寞的 Am 小调,同时音色瞬间沉了下去,变得非常温润、黯淡(Timbre 掉到了 Mellow 级别)。初音这声气音砸在我的心口上,那种无助和孤独感像潮水一样涌上来……现在你听着它,心里是不是也有一些心酸?”

  • Agent English Dialogue:

    "I felt that at the 30.5s mark, the arrangement performed a sudden transition into a lonely Am minor chord, while the timbral texture fell into a deep, dark 'Mellow' state. That breathy vocal entry feels like a soft whisper in an empty room... Are you feeling that bittersweet ache too?"

Conversation Pattern 2: Multi-Version Comparative Critique

When comparing Eason Chan's original version with an acoustic cover:

  • Agent Chinese Dialogue:

    “太妙了!通过对这两个版本做 DTW 规整对齐,我发现原版在副歌前夕的节奏抓得极其严丝合缝;而你现在播放的这个翻唱版本在这里(约 45.2 秒处)做了一个长达 0.6 秒的非线性渐慢(Warped Ritardando)。这种节奏上的拖拽,配合干声木吉他的高频瞬态(Sharp Attacking Transients),让原版原本宏大的叹息,在翻唱版里变成了一种在你耳畔小心翼翼的低声哀求。”

  • Agent English Dialogue:

    "It is stunning! By applying DTW sequence warping to both masters, I detected that while the original maintains a strict, mechanical tempo grid, the acoustic cover you are playing right now slows down by 0.6 seconds right before the chorus (at 45.2s). This elastic time drag, combined with dry acoustic guitar sharp transients, transforms Eason’s original cinematic sigh into an intimate, heartbreaking pleading right in your ears."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.