Repository navigation
Musicwright Produce
musicwright-produce finishes and checks audio that exists: loudness to a destination with a true-peak ceiling, two-pass mastering, trimming and fades, formats and sample rates, clipping and silence checks, stems with Demucs or RoFormer, mixing fixes for AI output, and since 0.1.1 a mix check and loudness-matched comparisons. Everything is measured before and after. It runs mw.py measure, mixcheck, compare, preview, master, monobass, mix, edit and analyze.
"master this", "how loud should it be", "is this clipping", "is it muddy", "why does mine sound smaller than", "check it in mono", "convert to ogg", "split the stems", "refresh musicwright-produce". Loops for games are game; fitting a video is score.
-
Measure with
mw.py measure(duration, rate, integrated loudness, loudness range, true peak, head and tail silence, interior gaps, clipping signs, warnings),mixcheckfor what a mix engineer listens for (flags OVER-LIMITED, FLAT, MUDDY, BRIGHT, MONO-LOSS, LOW-WIDE, BELOW-RANGE; their rates on 78 real AI renders are inreferences/mixing.md), optionallyanalyzefor tempo, key, tuning and repetition, andsheetto look.compare take refsets a take beside a reference the user owns.Compare at one loudness (Step 1b): before a listener ranks takes or judges a fix,
previewwrites matched copies;--blindhides which is which,--as phoneand--as quietare the small-speaker and low-level checks. -
Pick the destination preset from
loudness.json(the eight presets). Game targets apply to the whole game mix: master every music file of one game to one level and balance against sound effects in the engine. -
Fix, then master last: trim and fade (
edit), repair, then loudness (master). Too much tail silence:edit --end <t> --fade-out 2-4. Clipping in the source: a lower target or a gentle limiter in a DAW, never more compression on dense AI output. LOW-WIDE:monobassfolds the lows to mono under a 160 Hz crossover. FLAT on a piece that should build, or everything equally bright: with stems,mix --automategives sections 1 to 3 dB of contrast and--shelvesdarkens the background parts. Muddy, harsh or dull without stems: it describes the problem and suggests EQ moves fromreferences/mixing.md, because the agent cannot judge by ear. Fades go beforemasterwhen it reportslinear, after it when it reportsdynamic. For a human mastering engineer,master --peak -6hands over a gain-only pre-master. -
Formats: work in WAV or FLAC at the source rate, 48 kHz for games and video, OGG Vorbis for engines, MP3 only for distribution and never for loops (its padding adds silence: +1,728 samples measured when the gapless tag is missing).
edit --out name.extconverts by extension. -
Report and record: every deliverable with its path and after-numbers, added to
music.json.
master on the 45-second stand-in take (Commands) went from -16.0 LUFS to -13.9 LUFS for streaming and to -17.9 for game-music, with one linear gain each. On a steady test tone it reported "dynamic" instead, which is a property of ffmpeg's loudnorm, explained on Errors and edge cases. mixcheck flagged the stand-in take MUDDY (its 220 Hz tone sits in the lowmid band), a clipped tone OVER-LIMITED, and a G3 tone under a flute brief BELOW-RANGE; preview brought three stand-ins to one level with gains of 0.0, 1.4 and 5.8 dB (Commands).
- Measure before and after every change; never claim an improvement without the numbers.
- Never let a listener compare copies at different loudness: preview them matched first.
- Master last, once: re-mastering a mastered file stacks artefacts.
- Keep the original take untouched in
takes/; write results toout/. - GPL or AGPL tools (Matchering, Essentia) are called as separate programs, never vendored.
Files: skills/musicwright-produce/references/loudness.md (targets with sources), mixing.md (the mix flags, their rates and fixes for AI renders), ffmpeg.md (tested recipes, including some mw.py does not wrap), stems.md. Maintenance: tier moderate (next check due 2026-11-16); 11 eval cases, three runs recorded in TESTS.md (the latest 3/3 on 2026-10-23).
This wiki describes musicwright 0.1.19 (tag v0.1.19, commit 3211a94) and was last updated on 2026-11-07. The plugin is MIT licensed. Report problems in the issues.
Using it
- Getting started
- Commands
- Recipes and loudness presets
- The project contract and studio
- Workflows
- Errors and edge cases
- FAQ
- Works with
The skills
- musicwright (hub)
- musicwright-generate
- musicwright-compose
- musicwright-produce
- musicwright-game
- musicwright-score
- musicwright-curate
The releases
Contributing
Elsewhere