motion-score
/motion-score
Score a code-drawn animation with sound synthesized in code (Web Audio OfflineAudioContext, no samples) from its frame events, then measure the decoded audio - hit offsets vs frame+1, dB over bed, LUFS, true peak, band energy, phone band, seam - and iterate with measured follow-ups. Use when the user wants sound, music, sfx or a soundtrack for an animation.
- Author
- ajitpratap0 ↗
- Repository
- motion-lab ↗
- Licence
- MIT
- Last repository change
- 07.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 07.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Score a code-drawn animation with sound synthesized in code (Web Audio OfflineAudioContext, no samples) from its frame events, then measure the decoded audio - hit offsets vs frame+1, dB over bed, LUFS, true peak, band energy, phone band, seam - and iterate with measured follow-ups. Use when the user wants sound, music, sfx or a soundtrack for an animation.
Original author description
Score a code-drawn animation with sound synthesized in code (Web Audio OfflineAudioContext, no samples) from its frame events, then measure the decoded audio - hit offsets vs frame+1, dB over bed, LUFS, true peak, band energy, phone band, seam - and iterate with measured follow-ups. Use when the user wants sound, music, sfx or a soundtrack for an animation.
How it works
SKILL.md has no level-two headings · 31 lines, 319 words
SKILL.md preview
---
name: motion-score
description: Score a code-drawn animation with sound synthesized in code (Web Audio OfflineAudioContext, no samples) from its frame events, then measure the decoded audio - hit offsets vs frame+1, dB over bed, LUFS, true peak, band energy, phone band, seam - and iterate with measured follow-ups. Use when the user wants sound, music, sfx or a soundtrack for an animation.
---
# Score from frame numbers
`LAB` = two directories above this skill's base directory. Read `$LAB/reference/sound.md` first.
`LAB` is an absolute path, not a shell variable: start each Bash call with `LAB=<path>;` and write the path
itself into agent prompts.
1. Picture is locked first (audit passing). Read `window.__events` (or the timeline table).
2. Write the sound prompt (shape in sound.md) into `SOUND.md`, mapping every event frame to a sound, the bed by bar,
BPM/key, levels and the master spec. Log it in RECEIPTS.md under `## Sound prompt`.
3. Implement `window.renderAudio({sampleRate, secs})` in the scene (or a sibling `score.html`) with an
OfflineAudioContext: cosine-phase tones, 0.5-1 ms attacks, hit target sample `(frame+1)/fps*sr`, no waveshapers on
hits, DC removed. For loops, render two loops in one `2 x secs` context and return the second, so tails wrap
across the seam (`--passes` does not do this). Render a separate bed-only pass when `{bedOnly:true}` is passed
so hit-over-bed can be measured.
4. Render and measure:
```bash
node "$LAB/scripts/score.mjs" anim.html --out out/score.wav --passes 2 --dc
node "$LAB/scripts/score.mjs" anim.html --out out/bed.wav --passes 2 --dc --bed-only # if supported by the page
node "$LAB/scripts/audio-measure.mjs" out/score.wav --from-page anim.html --fps <fps> --bed out/bed.wav --json
```
5. Spawn **motion-mixer** (`motion-lab:motion-mixer`) with the plugin root path (`LAB`), the measurement JSON and SOUND.md. It returns numbered
sound follow-ups that quote measurements. Apply, re-measure; log under `## Sound follow-ups` by round.
6. Done when: every hit offset within 0..+1 ms of frame+1, hits 3-6 dB over bed, -14 ± 1 LUFS, TP ≤ -1 dBTP,
< 50% energy under 60 Hz, seam step inaudible.
7. Mux: `node "$LAB/scripts/export.mjs" mp4 --audio out/score.wav --loudnorm`, then re-run audio-measure on the MP4
with `--video` to catch codec padding and `--bed out/bed.wav` so hit offsets are measured on the hits, not the
bed's peaks (without it, a trial read 1.3 and 2.3 ms; with it, 0 ms).
You cannot listen; never claim something "sounds" good. Report measurements.
Versions
The database has no other skills named motion-score.
Database snapshot: 13.11.2026 · package version f1abd38a60a2 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100sound-design
Add beat-locked sound effects and a music bed to a Motion Lab video using the bundled CC0 library in public/sfx, SoundCuePlayer and scripts/sound_pass.py, and verify loudness (about -16 LUFS, true peak below -4 dBFS) on the exported MP4. Use when a brief asks for sound, SFX or… - 100sound-design
Design and render the accent sound for a package animation - tuned, glassy one-shots placed exactly on the animation's visual events with pitch tied to the physics, CC0 or synthesized sources with a licence ledger, levels set to sit under the talking head, a seamless audio loop,… - 100sound-design
Sound design and audio finishing for video edits - music editing (cutting songs on bars, loops, stingers), SFX placement on visible events (whooshes, hits, risers, clicks, impacts, braams), aligning SFX attacks to frames, synthesizing simple SFX, dialogue cleanup, ducking music… - 100audio-and-sound
Use this skill when adding audio or sound to a Phaser 4 game. Covers loading audio, playing sounds, music, volume, spatial audio, Web Audio API, and SoundManager. Triggers on: sound, audio, music, volume, mute. - 100audio-analysis
Extract audio from a video (or analyze a standalone audio file) and report loudness — integrated LUFS, true peak (dBTP), loudness range — against a target like YouTube (-14 LUFS) or broadcast (-23 LUFS). Use when the user says "check loudness", "is this normalized", "extract the… - 100audio-score-design
Use when designing audio, music, sound effects, or voice/dialogue for video storyboards, AI video generation pipelines, film scoring, or any project requiring per-shot synchronized sound design with three layers (score, SFX, voice). Triggers include "audio design", "film score",…