Skip to content

Musicwright Generate

Mark Rogers edited this page Nov 7, 2026 · 5 revisions

musicwright-generate is used whenever music audio should come from an AI model. It picks the model for the job and the licence, writes the caption and section tags, fishes with seeds, fixes harsh, boring or off-brief takes one knob at a time, and builds long pieces from movements. It runs mw.py gen from the hub's scripts/ folder; the hub's take loop (sheet, report, verdict) applies to every render.

When it starts

"generate music", "which music model", "ACE-Step settings", "write the caption", "it sounds harsh", "can I use Suno output commercially", "refresh musicwright-generate". Theory goes to compose, finishing to produce.

Choosing the model

It checks mw.py doctor's recipes_runnable first, then picks by job:

Job First choice
Instrumental, 30 s to 4 min recipe acestep-xl-sft through ComfyUI (MIT)
Calm or combat instrumental, with the optional pack installed recipe acestep-xl-sft-pack; not the default
Fast drafts, many seeds recipe acestep-rest (ACE-Step 1.5 2B turbo through the REST server)
Cover, repaint a time range, one part out of a mix ComfyUI first: --task cover or repaint on acestep-xl-sft, --task extract on acestep-xl-base
Extend, lego, complete ACE-Step REST tasks
One part added to a kept take recipe acestep-rest-lego (--task lego, the 2B base model)
Song with sung lyrics acestep-xl-sft with lyrics, minimax-music3 as a second opinion
Lyrics-led song with an editable score yue2-3b-int8 (ComfyUI native); --task cover sings over a source's melody
Loops and SFX from licensed training data stable-audio3-medium (ComfyUI native, no vocals)
Hosted, paid Lyria 3.5 or ElevenLabs Music, after the cost is approved
Suno, Udio manual only, never automated

The six recipes gen can run, with their parameters and sources, are on Recipes and loudness presets. Models, VRAM, licences and prices with dates are in references/models.md, licences.md and hosted.md (checked 2026-10-17).

Writing the prompt (ACE-Step)

  • The caption says what it sounds like: genre, era or production, 3 to 5 instruments, 2 to 3 mood words, "instrumental" or a vocal description, a structure hint.
  • Tempo and key stay out of the caption: they go in --bpm and --key. Leave them out and gen still sends 90 bpm and C major to ACE-Step (why).
  • Sections say what happens over time: --sections "Intro - breathy flute|Verse - melody|Outro - fading flute" becomes bracketed lyrics; without sections the lyrics are [Instrumental].
  • Say what is there: "solo flute, unaccompanied" works better than "no drums".
  • Noise textures (static, hiss, beeps) come out loud: qualify them or add them later.
  • Sections can say who plays (Intro - pad and kick only|Build - bass and arpeggios enter), with the near and far parts named in the caption. This is book craft added in 0.1.1; in one blind pair of orchestral XL takes the density tags did no better than mood words, and the skill says so.
  • Read the listener's taste.md first, including its "Tired of" list, so a caption does not repeat what they have worn out.
  • MiniMax Music 3 takes a three-heading caption instead (references/minimax3.md): Global Metadata, Vocal Details, and an Arrangement timeline. Pass it with --caption-file.

Fish, then lock

Render 3 to 6 seeds of one caption, look and report, get a verdict, lock the best seed, then change one knob, re-render that seed and compare on loudness-matched copies (mw.py preview). Stop after three or four changes when the last two did not help (after DeSantis, Making Music). The cheat-sheet for ACE-Step XL:

Problem Change
harsh, brittle cfg down (--cfg 4); the default recipe is already 4.5
boring, static better sections; LM temperature up (--set '{"temperature":1.0}')
ignores the caption LM cfg up (--set '{"lm_cfg":3}') or recipe acestep-xl-sft-classic
mushy --shift 4
sterile, stiff --shift 1.5 to 2
wrong tempo or key set --bpm and --key
goes quiet at the end render 5 to 10 s longer, then trim with edit

What each override changes in the graph is shown on Commands.

Working from a source inside ComfyUI

Cover and repaint run on the ACE-Step ComfyUI recipes since 0.1.6, and extract on acestep-xl-base since 0.1.7. Cover follows the source's semantic hints unless --strength asks for a partial denoise (the default since 0.1.8). Repaint, extract and hint cover need the custom nodes in the hub's comfy_nodes/ folder. The options, dry runs and what the project measured are on Commands.

Adding a part to a kept take

New in 0.1.1 (Step 5 of the skill):

  1. mw.py pulse lead.flac: a steady pulse can carry percussion; with none, offer a re-render at a fixed bpm or accents placed on phrases.
  2. Start the REST server on the base model, then mw.py gen --recipe acestep-rest-lego --task lego --src lead.flac --track woodwinds --caption "..." --seeds .... Noise in the sheet means DCW was on (an old server).
  3. Lego plays along rather than answering. For call and response, mw.py duck part.wav --under lead.flac --stem --out answer.wav, then mw.py answer answer.wav --lead lead.flac.
  4. mw.py mix lead.flac answer.wav --stems stems/ --out mix.wav, and the listener judges the plain and the ducked mix side by side.

The dry run, the checks on --task and the answer output are on Commands.

Long pieces

One caption holds one colour. A cue that travels from dread to dawn is rendered as movements, each with its own caption, key and length a few seconds longer than its slot, then joined on the hit points with mw.py join (Commands, Workflows).

Rules

  • Every take goes in the ledger (gen writes it).
  • A recipe enters recipes.json only after a listener kept a take made with it.
  • On a shared 16 GB GPU, one heavy job at a time; the REST server and ComfyUI's ACE-Step each hold 10 to 13 GB, so not both.
  • Hosted APIs cost money: say the price and ask before the first paid call.

Files: skills/musicwright-generate/references/ holds models.md, acestep.md, minimax3.md, acestep-rest.md, hosted.md and licences.md. Maintenance: tier fast (next check due 2026-10-31); 7 eval cases, three runs recorded in TESTS.md (the latest 6/6 on 2026-10-23).

Clone this wiki locally