📝 Song Plan
Song Plan builds a whole song from a description. You say what the song should be, a language model turns that into a plan of sections, and a MIDI-generation model composes the plan section by section into a new document.
How it works
The models that write the notes read no text - words like "chorus" or "pirate metal" mean nothing to them. Song Plan puts a language model in front of them: it understands the description, decides on tempo, key, band and form, and then steers the MIDI model with what that model does understand - instruments, tempo, meter, key and the music written so far.
💡 Find it in: the tab Song Plan of the MidiPilot dock. The MIDI models are the ones of the MidiCreator tab, the language model comes from your provider profiles in Settings → MidiPilot AI.
A described song and its plan: eight sections with their bars, instruments and how each one is made.
The work has three steps: describe the song, check the plan, build it.
Describing the song
| Field | What goes in |
|---|---|
| Language model | The model that plans the song, changes the plan and picks the variants. The list shows the provider profiles of Settings → MidiPilot AI with their model and favourites; it is independent of the model MidiPilot's chat uses. The keys stay in the Settings. |
| Style | Genre, instruments and feel, for example pirate metal, accordion and fiddle, fast shanty feel |
| Song | What happens in the song, for example an upbeat anthem about a storm at sea: a lonely accordion intro, a big singalong chorus, a heavy breakdown before the last chorus |
| Exclude | What the song should not have, for example no synths, no slow ballad parts. The planner leaves these out and the variant picker avoids them. |
| Length | About how long the song should be, in minutes |
| Weirdness | How adventurous the generator is - its temperature, top-p and top-k for each section - and how unusual the planner may get |
| Accuracy | How strictly each section must have the wanted instruments, stay in key and fit the style when one of the variants is picked |
Create plan sends the description to the language model. The plan appears below. While the model writes, the button reads Cancel plan: it ends the request at once - also one that MidiPilot or an MCP client sent - and the plan on screen stays as it was. The planner works on one request at a time; a request that cannot go out (no description, no language model, another request still running) says why in the Planner area.
The Planner area under the button shows the conversation with the language model while it happens, as chat bubbles: on the right your request exactly as it is sent; on the left the model's thinking when the provider sends a summary of it, and the planner's answer, which grows by every section as soon as the model has written it - the plan table fills at the same time. While the model thinks before it writes, a running time shows that it is still working. The header line - title, tempo, meter, key, band, drum kit and lead - appears once the model has written all of it. A change in words (see Changing the plan) shows your request, the header line only when one of its fields changed, and only the sections that changed, were added or were removed - compared with the plan the change was made to. Planner folds the area away, Clear empties it; while the model is writing, Clear is not available.
The fields are stored as you type, and the plan text as you edit it - closing the editor keeps them.
The plan
The header line of the plan names the title, tempo, time signature, key, the number of bars and the resulting length, the band with its drum kit, and the lead - the instrument that carries the tune. The table lists the sections in order with their length in bars and how each one is made:
| How | What happens |
|---|---|
| compose | New material from the frame alone: tempo, meter, key, instruments. This is how the first section starts. |
| continue | The model hears the last bars of the song and goes on. A section can change the band: instruments that join are announced to the model, the others fall silent. |
| repeat | A copy of an earlier section, optionally transposed - every chorus that comes back. It needs no generation. |
| vary | The first bars of an earlier section, then developed anew - a second verse, a reprise in the outro. It plays the instruments of that section (the whole band when that section names none) and no others; an instruments list of its own in the plan's JSON gives it another band. |
The tooltip of Build song says how many generator runs the plan needs: one for every compose, continue and vary section, none for repeats.
What the editor had to correct in a plan is listed under the table as Corrected - for the planner's answer as well as for a plan typed by hand: a time signature or drum kit that is not available, an instrument outside the band, a repeat of a section that does not come earlier, a number written as text or with a fraction, a value outside its range. A song has at most 400 bars; the planner is told so, and the sections after that limit are left out of a plan, which the list says too.
Changing the plan
- In words - type into the line under the table, for example longer chorus, add a breakdown after chorus 2, and click Send. The language model changes the plan and the table updates.
- By hand - Plan as JSON (editable) shows the plan as text. Edit it there; the table follows, and an error in the plan is named above it.
- Recent plans - the last plans that were created, changed or built, here or by MidiPilot or an MCP client. Picking one loads it. Whenever another plan replaces the one on screen, that one is kept in the list - also an edit that is not a valid plan yet.
While a song is being built, the plan on screen is the build's own: its Result column fills section by section, so the plan text and Recent plans are locked. A plan that MidiPilot or an MCP client asks for meanwhile is shown in the Planner area and waits in Recent plans.
Building the song
| Setting | What it does |
|---|---|
| MIDI model | The model that writes the notes. As in the plan uses the model named in the plan, midi-composer by default. With an Orpheus model every continue and variation comes from Orpheus, while new material (compose) and the continuation of bars that hold only drums come from midi-composer, which takes tempo, meter, key and instruments directly. With Orpheus on its Space that is the midi-composer Space. With Orpheus on this PC it is a midi-composer model on this PC: install one too with Models… - without one the build does not start, and nothing goes to a Space. Models ending in (native) run on this PC - Models… downloads them, see Models on This PC. The build's status lines name the model of every section and where it runs. A build that MidiPilot or an MCP client starts without naming a model uses the model chosen here. |
| Variant pick | Who picks each section's variant from the ones the MIDI model wrote:
|
Build song builds the plan on screen, also while the planner is still writing another one, and opens a new tab that it fills section by section: one track for each instrument of the band, a marker at the start of every section, and a line in the Result column with the bars and the number of notes. When the variant a section keeps stops a bar or more before the section ends - one run of a model does not always reach that far - a second run continues the song from the first empty bar and fills the missing bars, and a third one if needed; the Result line says how many bars were filled that way. A model that runs on this PC lets each variant stop as soon as it has passed the end of its section, so its runs rarely fall short and no time goes into music that would be cut away. Each section is one undo step together with its marker (also a variation, and a section with its filled end), so a section can be taken back on its own. The tab is named with the MIDI model of the build, for example Song - Sunlit Harbour.orpheus-medium-4bit.mid, and Save suggests that name.
Each continue and variation hears the song as it was written: channels muted or soloed in the song's tab - to listen to one instrument, for example - are still part of what the next sections continue. When the bars right before a section are silent, the model hears the song from its start instead; a section becomes new material only when nothing plays before it at all.
Stop ends the build at once: the section being generated is dropped, and Resume generates it again (a run on a Space that is stopped still counts against the GPU quota). Variants that are already complete are kept: stopped while the language model picks one, Resume asks it again instead of generating anew. A section whose end is being filled keeps what it has, and Resume goes on with the next one. Sections that were finished stay in the song with their markers. Resume also continues after a stop caused by the connection or the GPU quota. With no build running, Stop ends a plan request that is being written.
From its first section to its end - also while the language model or you pick a variant - the build holds the MIDI model: a generation from the MidiCreator tab, from MidiPilot or from an MCP client is refused until the build is done or stopped, so it cannot take the model from the next section. A transcription can run next to a build on a Space. With a model on this PC both use the same processor or graphics card: a transcription waits while the build generates, but may start while the build waits for your pick - the next section then waits until the transcription is done.
Resume goes on with the build's own plan - its first sections were built from it - and with the MIDI model, Variant pick, Weirdness and Accuracy the tab shows when you click it. After a stop on the GPU quota, for example, choosing a model on this PC lets the rest of the song come from there. When another plan is on screen, the build's plan comes back into the editor and the other one is kept in Recent plans. A build can be resumed while its song's tab is open: nothing of the build is stored with the song, so after the editor restarts the half-built song opens as an ordinary document and its remaining sections cannot be continued from there.
Picking the variants yourself
With You pick the build stops after every generated section and the window Pick a Variant opens. It lists the section's variants in the score's order - the ones that fill the whole section first - with their score and what the score says about them. The score's favourite and the language model's suggestion are marked in the Pick column.
The selected variant is placed in the song's tab right away, exactly as it would be used: on the song's tracks, with the section's instruments. You see its notes in the piano roll, and the Notes column shows how many it placed. Selecting another variant takes the previous one back and places the new one.
| Button | What it does |
|---|---|
| Play Alone | Plays the section with the selected variant on its own. |
| Play in Context | Plays the end of the song so far and then the section, to hear whether the transition fits. The list next to it sets where it starts: 1, 2, 4 or 8 bars before the section, or from the start of the song. |
| Stop | Stops playing. Space plays again (as the last Play button) or stops. |
| Use This Variant | Keeps the selected variant for the section. The build goes on, and the next section is built on it. Enter does the same. |
| Generate Again | New variants for the same section. When the new run fails (the GPU quota, a busy Space), the variants that were on offer come back and the window waits again. |
| Let the Score Pick the Rest / Let the Language Model Pick the Rest | The score picks this section and all that follow; the build no longer waits. With You pick - the language model suggests the button reads Let the Language Model Pick the Rest, and the language model picks them. |
With Play a variant when it is selected ticked, every variant you select starts playing at once - go through the list with the arrow keys to compare them.
Close only hides the window: the build keeps waiting, and Pick Variant… in the Build group opens it again. Stop in the Song Plan tab takes the variant you were listening to out of the song; Resume offers the same variants again.
You pick, the language model suggests: its choice is already in the song for listening, and the score explains every variant.
A build with the language model picking the variants - eight sections on the graphics card, the waiting shown faster.
After the build
The result is an ordinary document: play it, edit it, hand it to MidiPilot. To write a passage anew, select its notes, right-click and choose Regenerate These Bars with MidiPilot... - MidiPilot's Creator mode has the MIDI model write those bars again, and you keep one of its variants. For new notes on the same rhythm, right-click the selection and choose Re-pitch Selection with Orpheus... (Re-pitch in the MidiCreator tab). Continue in the MidiCreator tab does not replace bars: it adds new notes after the selection, into the tracks that play those channels, to extend a piece.
MidiPilot's Agent mode and MCP clients can do the same when the generator tools are switched on:
plan_song and change_song_plan let this tab's planner write and change a
plan - it shows here in the Planner area under the client's name - and build_song
builds it, with the same choices for picking the variants. The fields of this tab then show what
the client asked for - description, length, weirdness, accuracy, who picks - so a build started here
runs with the same settings. They are not stored as yours until you change something in the tab
yourself. A description you had typed and not sent yet is not lost - a note in the Planner
area offers Restore your description. See
Generator and transcription tools.
Comparing the MIDI models
The same plan, built once with each MIDI model: Metal Mozart - 176 BPM, D minor, a violin lead over harpsichord, distorted guitar and electric bass, a French horn in the chorus and the Power drum kit; nine sections and 72 bars, six of them written by the model, the rest repeats. The score picked every section, so the model is the only difference. The songs are played with the GeneralUser GS SoundFont, as the editor's audio export does.
| MIDI model | Runs on | Build | Notes | Listen |
|---|---|---|---|---|
| midi-composer tv2o-medium Dense and guitar-driven; violin and harpsichord play the tune in unison. |
Local (GPU) | 2:15 | 4,522 | MIDI |
| Music-Llama-Medium Light and airy: drums in front, violin and harpsichord, the bass almost silent. |
Local (GPU) | 2:27 | 1,878 | MIDI |
| Orpheus medium Bass and harpsichord carry it, drums all the way; the most varied melodies. |
Local (GPU) | 3:18 | 1,862 | MIDI |
| Orpheus large (quality fine-tune) The most even band: all five instruments with a similar share. |
Local (GPU) | 4:15 | 2,224 | MIDI |
| tv2o-medium J-pop Harpsichord-led and bright, little guitar. |
Space (midi-composer) | 2:12 | 2,376 | MIDI |
| tv2o-medium Touhou Driving drums and guitar, a steady game-music feel. |
Space (midi-composer) | 2:16 | 2,035 | MIDI |
| tv2o-large (Music-Llama) The densest: walls of guitar and harpsichord. |
Space (midi-composer) | 3:05 | 5,532 | MIDI |
| Orpheus large (base) Bass and drums drive a full, energetic band. |
Space (Orpheus) | 4:26 | 3,356 | MIDI |
A build time runs from the start to the finished song; the local models ran on the graphics card, and a Space's time depends on how busy it is. The Orpheus builds have their first section - a new idea - written by a midi-composer model (locally or on its Space), since Orpheus continues music. Each build gives other songs: the variants are drawn anew every time.
See also
- MidiCreator - the same models for a single continuation, a new idea, or new pitches.
- Models on This PC - the models that run inside the editor.
- MidiPilot Settings and Providers - the provider profiles the language model list is made of.