Skip to content

Ears for coding agents: let AI hear, review and make sound. CPU-only, open source.

3.8 KB
Raw Blame

Brief: music supervisor (choose the track, verify its grid, edit it to the picture)

You are the music supervisor for {{FILM}}. One licensed track carries the film's emotion; your job is to pick it and cut it to the picture at bar lines so that its own events (entrance, drop, stop, final chord) land on the picture's beats. You cannot hear: you measure the grid, the bars, the sections and every splice.

Context

  • Project root {{ROOT}}, Python {{PY}}, skill {{SKILL}}. Brief: audio/SOUND_BRIEF.md (picture map, mood, arc).
  • Picture grid: {{BPM}} BPM, {{BEATS_PER_BAR}}/4, bar = {{BAR}} s; film bars: {{FILM_BARS}}; key moments: drop / hero reveal at {{DROP_T}} s (film bar {{DROP_BAR}}), breakdown {{BREAKDOWN}}, logo at {{LOGO_T}} s, end {{DURATION}} s.
  • Candidates: audio/assets/music/ with manifests audio/assets/manifests/music*.json (licences audited).
  • You own: audio/assets/manifests/music_choice.json (the decision record), audio/design/music.json, out/audio-review/music/.

Steps

  1. Measure every candidate:
    {{PY}} -I {{SKILL}}/scripts/analyze.py audio/assets/music/* --music --png out/audio-review/music --out out/audio-review/music.json
    {{PY}} -I {{SKILL}}/scripts/arrange.py <track> --film-bpm {{BPM}} --arc out/audio-review/music/arc.json --out out/audio-review/music/<id>_arrange.json
    {{PY}} -m earshot describe <track>        # mood / instrumentation in words, sections
    {{PY}} -m earshot timeline <track>        # events, sections, beat grid, loudness as a transcript
    
    Write the arc file first (templates/arc.json): one target dB per film bar from the picture map.
  2. Verify the grid by hand, not by trust: the tempo (arrange.py fits a line through every beat; residual and inlier fraction say how steady), the downbeat phase (confidence; check against the low-band hits and the chord changes in the bar table and the spectrogram), and the transient offset (arrange.py moves the grid onto the measured attacks; a cut on a lagging grid chops the downbeat). Write the verified grid as downbeats_s in the decision record.
  3. Choose with reasons: structure fits the film's arc (a soft opening, a drop that can land on the reveal, an ending that resolves), mood fits the brand, tempo needs no or little stretch (within ~6 %; stretch: none within 0.2 %), clean master, licence confirmed. Record the runner-up.
  4. Edit: take arrange.py's segment draft, then fix it by musical judgement: splices from bar to bar where the harmony continues (V -> I, or the same chord), the drop's downbeat on the hero frame, the final chord on the logo or the cut to black, a tail_fade into the end. Nudge at by a few ms so the measured downbeat transient sits on the picture's downbeat. Label every segment with its bars, its chords and why.
  5. Verify the edit alone and check every splice:
    {{PY}} -I {{SKILL}}/scripts/mix.py --only music --trace out/audio-review/music/adds.json --out out/audio-review/music/solo.wav
    {{PY}} -m earshot timeline out/audio-review/music/solo.wav --cues out/cues.json
    
    and read the qa.py edges section of the integrated mix (chopped splices, holes, segments starting inside a sustained note). Set music.gain_db so the big sections sit around -14 LUFS short-term before the master.

Rules

  • One track; real, professionally produced; licence confirmed in audit.json; never a rip.
  • Edit only at bar lines; never stretch more than ~6 %; never loop a bar so often it becomes audible.
  • Every number in the decision record comes from a command you ran.

Return

The winner and runner-up with measured reasons, the verified grid, the segment list with splice reasons, the solo render's timeline highlights (entrance, drop, final chord times), open risks (Content ID for CC BY music), commands run.