motion-score
/motion-score
Tworzy dźwięk animacji z kodu w Web Audio i mierzy go: przesunięcia uderzeń, głośność, LUFS i pasmo.
- Autor
- ajitpratap0 ↗
- Repozytorium
- motion-lab ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 07.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy dźwięk animacji z kodu w Web Audio i mierzy go: przesunięcia uderzeń, głośność, LUFS i pasmo.
Oryginalny opis (EN)
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.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 31 linii, 319 słów
Podgląd SKILL.md
---
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.
Wersje
W bazie nie ma innych skilli o nazwie motion-score.
Migawka bazy z 13.11.2026 · wersja paczki f1abd38a60a2 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100sound-design
Dodaje do wideo efekty dźwiękowe zsynchronizowane z rytmem oraz podkład muzyczny, mierząc głośność w gotowym pliku MP4. - 100sound-design
Projektuje dźwięk akcentujący animację pakietową: krótkie dźwięki na zdarzeniach, pętlę audio i mapę ściszania głosu. - 100sound-design
Projektuje dźwięk i obrabia ścieżkę do montażu wideo: muzykę, efekty, czyszczenie dialogów, ściszanie i normalizację do -14 LUFS. - 100audio-and-sound
Dodaje audio do gry w Phaser 4: wczytywanie dźwięku, odtwarzanie muzyki, głośność, dźwięk przestrzenny, Web Audio API i SoundManager. - 100audio-analysis
Wydobywa audio z wideo lub analizuje plik audio i raportuje głośność (LUFS, dBTP, zakres głośności) względem celu YouTube lub nadawczego, tylko do odczytu. - 100audio-score-design
Projektuje dźwięk do storyboardów i wideo generowanego przez AI w trzech warstwach: muzyka, efekty dźwiękowe i głos, zsynchronizowane ujęcie po ujęciu.