music-to-picture
Skill1 starsChanged 45 days agoMITView on GitHub
Measure a music track and cut it to a video's story points: tempo and beat grid, downbeats, sections, where it ends, then an arrangement that lands the drop on the first real action, suspense on a failure, the biggest return on success, a breakdown under a quiet section and the track's own ending on the end card. Use when someone wants a soundtrack fitted, swapped, slowed, re-cut or made "more cinematic" on an existing video, wants several music versions of one picture, says the music is "monotonic", "not smooth", "off-theme" or "too loud at 44 s", or asks which licensed track fits.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- footage-cleanupSkill
- frame-reviewSkill
- launch-film-studioSkill
- mix-masterSkill
- reference-studySkill
- sfx-syncSkill
- stage-and-cameraSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Very specific: line 36
Check: every seam on a downbeat, audio-check.py new --vs approved --sections … shows only intended changes, and listen at every seam on …
- Distinctive: line 59
Keep the music driving into the end hit (riser, 80 ms breath, hit).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Music to picture
A real produced track, cut on its own downbeats to the story, beats any generated score played straight through. Synthesis is for effects and stingers; the bed is a recording with chord changes and sections.
Workflow
- Licence first. Record source and licence for every candidate (Pixabay: free, no credit; Uppbeat free tier: credit line; AI-tool or ripped audio: internal review only). Ask before downloading.
- Measure each candidate:
scripts/beatgrid.py track.mp3 --json track.beats.json.- The tempo is pinned by how sharply the whole track folds onto the beat; drift < 15 ms per 16 bars = fixed grid.
- Half and double tempo fold almost as sharply: decide by ear, then pass
--bpm. - The downbeat guess is an estimate: confirm it by listening at the first big section.
audio-check.py track.mp3: a body spread under ~8 dB, or one chord for a minute, will read as monotonic.
- Take the picture's events from
docs/EVENTS.md(measured on the render). - Cut the track to the story points with segments
(film_from, film_to, offset),src = film + offset, each anchored to one picture moment. Never stretch to fit; loop only whole phrases at downbeats. - Shape the body: headline markers, ducks, a build into the end card (see the reference).
- Check: every seam on a downbeat,
audio-check.py new --vs approved --sections …shows only intended changes, and listen at every seam on laptop speakers.
The arrangement that works for launch films
| Film | From the track | Anchor |
| intro (character, logo) | nothing, or its sparse intro; effects carry the first seconds | — |
| reveal → feature tour | its build, then the drop and main groove | the drop on the first real action |
| failure | its darkest bars, filtered, ticks on its own beats speeding up | the failure frame |
| recovery | a passage on the SAME chord the suspense ends on, filter opening over ~0.9 s | "checks passing" |
| success | its biggest return; the loudest moment of the film | the success frame |
| quiet section (mobile) | its breakdown, crossfaded in | the section start |
| end card | its own final bars and natural decay; ~2.5 s of silence at the very end | the landing hit |
Rules the ear confirmed
- Switch tracks inside motion, never mid-groove; never hand back to a track in another key or tempo.
- One theme from intro to end: an intro "off theme from the rest" was a real complaint.
- The recovery continues harmonically; a brighter chord jump reads as "too high, too quickly".
- A level jump at a seam may be the track's own downbeat: compare with the approved version before calling it a bug.
- Slowing a track: rubberband (pitch kept), then re-anchor every segment on its own sync point.
- A track without an ending gets one: the landing takes its biggest hit, the groove after it fades within ~4 s.
- Keep the music driving into the end hit (riser, 80 ms breath, hit). A "fade, stop, swell" ending was rejected.
Details, numbers and the full list of review notes: references/cutting-music.md.
Scripts
| Script | Use |
scripts/beatgrid.py track [--json f] [--bpm n] | Tempo, phase, downbeats, bar loudness, section changes, hits, where the music ends. |
scripts/audio-check.py mix [--vs old --sections a-b,…] [--duck a-b] | Loudness, dynamics spread, per-section before/after, duck depth. |
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
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.

