Repository navigation
Musicwright Compose
musicwright-compose holds the musical thinking behind a piece: keys, modes and scales by mood, chord progressions, tempo by genre, form, motifs and how to develop them, instrument ranges and timbre words, the vocabulary music models respond to, and notes-first routes (MIDI, ABC, MusicXML, LilyPond, Strudel, DAW and MuseScore MCP servers). Since 0.1.1 it also owns notation as audio: it runs mw.py render, notate and transcribe, and analyze --sections for a reference's form.
"what key sounds heroic", "chords for a sad cue", "write a motif", "make a MIDI", "describe this style for a prompt", "teach me music theory", and since 0.1.1 "play this tab", "turn this ABC into audio", "write down the melody in this recording"; also "refresh musicwright-compose". Rendering audio from a caption is generate.
- A prompt or brief (the usual one): turn the user's words or a reference into caption vocabulary, a key, a tempo and a section plan, write them into the project's
brief.mdDecisions list, then hand over to generate. - Notes: a motif, chord chart, MIDI file, score or live-code pattern.
- A question about music: answer from the tables, with one thing to listen for.
| Step | Rule of thumb from references/theory.md
|
|---|---|
| Mood to mode | wonder = Lydian (I-II), heroic = Mixolydian (I-bVII-IV-I), menace = Phrygian (i-bII), sad = vi-IV-I-V, epic = i-VI-III-VII |
| Use to tempo | ambient 60-80 bpm, card and strategy beds 80-110, combat 130-170 |
| Form | verse-chorus for songs, through-composed for film, A-B-A'-C for game loops (never one 8-bar loop) |
| Instruments | by register and colour, 3 to 5 focal parts at once |
| Words | genre + era/production + instruments + mood + vocal or "instrumental" + structure hint (references/vocabulary.md) |
A reference track or artist is translated into those descriptors through five fields in references/vocabulary.md (sound, harmony, melody, rhythm, form); mw.py analyze REF --sections gives a recording the user owns as sections in seconds and bars. Arrangement and endings: the densest section first and the others by subtraction, sections that differ in who plays, and an ending planned as its own section (references/theory.md). No living artist's name goes in a prompt; long-dead composers and historical styles are fine ("baroque", "in the manner of Debussy"). For world scales it names instruments and the scale, never a people or a sacred practice.
| Want | Format | Checked by |
|---|---|---|
| a melody to show or hum | ABC notation |
mw.py render tune.abc --check, then --out tune.wav
|
| a MIDI file for a DAW or game | ABC rendered to MIDI by mw.py render, or mido |
render writes the .mid beside the audio; audio from a MIDI file drops its pan |
| a printable score | MusicXML (mw.py notate tune.abc --out tune.musicxml) or LilyPond |
MuseScore or LilyPond to PDF or PNG, then look at the page |
| a looping pattern | Strudel or Sonic Pi code | a share link; the user presses play |
| the user's own DAW | a DAW MCP server (Ableton, REAPER, Logic) | read back the project after every write |
Everything written is parsed back and, when possible, rendered to audio or an image. render --check also gives melody hints for each line (too many leaps, no rhythm that returns), rules of thumb calibrated on public-domain tunes against random walks. A theme that must return across separate AI renders is kept as notes here, because captions do not reproduce a motif; use cover or repaint from one render instead.
Nothing is installed (MuseScore, LilyPond, FluidSynth, a DAW bridge) without saying what it is for.
render --check also reports key_fit since 0.1.4 (Commands). New in 0.1.1 (Step 4 of the skill; references/notation.md has the formats, tools and limits):
- Play it:
mw.py render <file> --checkreads ABC, ASCII tab, MusicXML or MIDI and lists bars that do not add up; thenrender <file> --out out/x.wav. Tabs carry no rhythm: say the tempo and check the step it chose. - Make it sound performed: the render can be the source of an ACE-Step cover (strength 0.5 to 0.9). That route is experimental and had not been run on hardware at 0.1.1 (the project's handoff notes).
- Write it down:
mw.py transcribe take.flac --out notes/take.mid --to abc,musicxml,tabwith--lowestand--highestset to the instrument's range; pyin for one line,--engine basic-pitchfor several notes. Free time: runpulseand pass--bpm. - Render the transcription back, let the listener compare, and say that a transcription is a draft.
Outputs of each command, including a transcription that split most notes in two: Commands.
Files: skills/musicwright-compose/references/theory.md, vocabulary.md, symbolic.md, notation.md. Maintenance: tier moderate (next check due 2026-11-16); 11 eval cases, four 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