Skip to content

Musicwright Score

Mark Rogers edited this page Nov 3, 2026 · 3 revisions

musicwright-score writes music to picture: spotting a cut, choosing a tempo so hits land on beats, rendering movements with their own mood and key and joining them on the hit points, one continuous score instead of music per shot, shaping loudness to the scenes, ducking under dialogue, temp tracks and delivery loudness. It runs mw.py join, duck, edit and master.

When it starts

"score this video", "music for my short film", "the music cuts abruptly between scenes", "make it build to the reveal", "duck the music under the voice", "refresh musicwright-score". Sound design and dialogue belong to a film plugin; when one owns the mix, this skill delivers the music stem it asks for.

The steps

  1. Spot the cut: a cue list in brief.md with each cue's start and end in seconds, its purpose, the hits it must land and what it must not do. Cue names 1M1, 1M2. Entries and exits matter as much as content.
  2. One score, in movements: one continuous score under the whole cut, because per-shot music re-attacks at every cut. A cue that travels (dread, dawn, triumph) is rendered as movements, each with its own caption, key and length a few seconds longer than its slot. Tempo for hits: bpm = 60 x beats / seconds between hits (16 beats in 7.5 s = 128 bpm); a hit may land within one frame (42 ms at 24 fps).
  3. Rank takes against a loudness shape when a cue must build or fall: mw.py curve (Commands, new in 0.1.7). Assemble: mw.py join m1 m2 m3 --lengths 24,10,12 --xfade 2 --fade-out 1.5 --out out/score.wav. Each part holds its length, then crossfades into the next; crossfade_centres_s lists the hit points (Commands).
  4. Sit it under the picture: duck 6 to 12 dB while people speak (attack 30 to 80 ms, release 250 to 700 ms) with mw.py duck, which remuxes when the output is a video. Then master to web-video (-16 LUFS, -1.5 dBTP) or broadcast. Since 0.1.1 references/spotting.md adds a presence check for every cue under speech: mw.py mixcheck BRIGHT or a high presence_db means the cue competes with the voice (after Oltheten, Mixing With Impact).
  5. Hand over the score, the cue list with hit times, the numbers and what nobody has listened to yet; record the director's notes as verdicts.

What duck writes

Without --stem, the output is the ducked music mixed with the --under audio: when the output is a video, the video stream is copied and the new mix replaces its sound. With --stem (new in 0.1.1) it is the ducked music alone, the stem a film plugin's mix asks for. Since 0.1.1 an audio output keeps the music's length: in the run on Commands, a 46-second score ducked under a 20-second dialogue file came out 46 seconds long (0.1.0 cut it to 20). A video output still ends with the video (Errors and edge cases).

Rules

  • Temp tracks guide pace and mood only: analyse them (mw.py analyze --sections for tempo, key and where the sections change; the sheet for density and swells) and write a caption from that. Never upload someone else's music as a reference.
  • Never name a living composer or artist in a prompt.
  • Keep the music stem separate from the mix.

Files: skills/musicwright-score/references/spotting.md (spotting notes, hit maths, frame rates, ducking numbers, temp-track analysis). Maintenance: tier moderate (next check due 2026-11-16); 6 eval cases, one run recorded in TESTS.md (6/6 on 2026-10-17).

Clone this wiki locally