The Short Answer #
In IteraSong, Qwen-Max picked editing tools and completed 145 of 160 tasks (90.63%) over 200 turns. Perceptual quality and user experience were not evaluated.
Using ChatGPT or Claude, you’d route requests to a bounded set of scoped tools so edits apply to a persistent labeled project rather than rewriting everything.
This is an arXiv paper; we have not checked whether it has been peer reviewed. The arXiv record notes: 'AAAI 2027 Demonstration Program (accepted). Extended version with appendix'.
A web music editor called IteraSong lets a language model change one part of a song at a time, and it worked in a small test. In IteraSong: LLM-Guided Iterative Symbolic Music Creation in a Web DAW, Qwen-Max completed 145 of 160 tasks (90.63%) across 20 ten-turn editing sessions. The model never wrote notes itself. It picked from a fixed menu of editing tools exposed through Model Context Protocol (MCP), and each tool acted on a persistent project.
This is an arXiv paper; we have not checked whether it has been peer reviewed. The arXiv record notes: "AAAI 2027 Demonstration Program (accepted). Extended version with appendix".
The domain is music, but the pattern may be worth trying on other work you iterate on with an agent; the paper tests only music. The system that produced the reported numbers combines a persistent project, a bounded set of scoped tools, a check before every change and a revision history.
Why does regenerating from scratch fail iterative work? #
The paper says many symbolic generation systems still center on producing or regenerating isolated outputs, rather than editing a project over many rounds. The authors argue that real creative work is a loop of listening, revising, comparing and refining over many rounds.
That loop needs three properties, according to the paper. Each edit has to build on the current project. Each edit has to change only the intended content. A bad change has to be revisable or undoable. The authors say few existing systems combine these in one project-level workflow driven by natural language.
If you have ever asked ChatGPT or Claude to "fix just the second paragraph" and watched it rewrite the whole document, you have seen the failure this design targets.
What did IteraSong measure, and how well did it do? #
The authors tested the system with Qwen-Max as the agent, running through the actual MCP execution path. The evaluation covered 20 ten-turn sessions (200 turns) over five starting projects ("SongProjects") and four workflows, with requests in both Chinese and English.
| Metric | Result | Count | Condition |
|---|---|---|---|
| Task completion | 90.63% | 145/160 | Qwen-Max , real MCP execution path, 200 turns in 20 sessions |
| Safe rejection | 100% | 40/40 | Same sessions; invalid requests must leave the project unmodified |
| State consistency | 100% | 200/200 | Same sessions; every turn |
The 160 and 40 add up to the 200 turns, and Table 2 gives the per-session counts for observation, mutation and rejection requests. It also reports no comparison against a one-shot baseline or another model, so the numbers describe this system, not an improvement over an alternative.
How does the method work? #
The project is persistent state maintained across rounds
A lightweight pop generator first produces a fully labeled multitrack draft: key, mode, tempo, tracks with roles, section boundaries, chord progressions and individual note events. That draft becomes a SongProject, which stays the single source of truth for the whole session.
Because every musical object is labeled, a request can point at something specific, such as "the bass in Chorus 2". The model does not have to infer structure from a long conversation.
The model picks an action; it does not write the data
The LLM acts as an intent interpreter and action selector. It identifies the target and the operation, then calls the matching MCP tool. In the paper's examples, "change the third track to piano" maps to the deterministic set_instrument, while "regenerate the bass in Chorus 2" maps to the section-scoped generative regenerate_section.
In this prototype, generative edits are produced by the same rule-based pop generator that made the draft. The LLM chooses which tool to call and with what arguments, while the notes come from the tool.
Tools are organized by scope and by kind
The action space is bounded and hierarchical: global, track, section and bar/note levels. Each level has deterministic tools (exact, repeatable) and generative tools (regenerate something within that scope). A few examples from the paper's table:
| Level | Deterministic example | Generative example |
|---|---|---|
| Global | set_tempo |
change_ending_strategy |
| Track | set_instrument |
regenerate_track |
| Section | transpose_section |
regenerate_section |
| Bar/note | delete_note |
regenerate_note |
Beyond these editing tools, observation primitives expose project, track, structure, chord and note information. DAW-control primitives cover play, stop, seek, loop, mute and solo.
A safety check runs before any change
Before anything is mutated, a safety module checks three things: whether the requested targets exist and are unambiguous, whether the arguments are valid, and whether the operation is supported. A request that fails is rejected and the project is left untouched.
Every edit is a transaction with a revision
Each successful edit creates a new project revision and a history entry. A failed operation leaves the previous state unchanged. That also supports undo and rollback, allowing later rounds to continue from a valid, explicitly selected state.
What changes for you if you build or use agents? #
The pattern here is shown on one artifact: a multitrack pop song in a web DAW. Here is what to do this week.
- Give the artifact addressable parts. Label sections, tracks, rows or clauses so a request can name its target. IteraSong starts from a fully labeled draft rather than an empty canvas.
- Replace "edit this" with a short verb list per scope. Define a few tools at each level (whole document, section, item) and split exact operations from regenerating ones. The model then chooses a tool instead of rewriting everything.
- Let the model route, and let tools do the work. Where an exact operation exists, such as changing a tempo or a column format, make it a deterministic tool the model calls, not text the model produces.
- Validate before you mutate. Check that the target exists, that it is unambiguous and that the operation is supported. If a check fails, ask a clarifying question and change nothing.
- Version every accepted change. Keep a revision per edit so you can undo.
- Test with multi-turn sessions that include bad requests. The paper's evaluation ran ten-turn sessions and counted both completed tasks and correct rejections. If you build an agent loop, measure the same two things, plus whether the state stayed consistent. The loop engineering guide covers how to structure that kind of testing.
What are the limits of this evidence? #
This is a demonstration-program paper about one prototype. The evaluation used Qwen-Max only, with 20 sessions over five starting projects. The paper reports no comparison with other models or with a non-tool baseline, so it does not show that this design beats alternatives.
The task domain is narrow. The prototype covers pop music and relies on a rule-based generator for both the first draft and generative edits. The authors say stronger generative backends are future work, and the results say nothing about how the same tools would behave with a neural generator that is less predictable.
Quality was not measured. The authors state that perceptual quality and user experience remain for future evaluation, so "task completion" means the system executed the requested change, not that the music sounded better or that users preferred the workflow.
The paper describes each edit as applied transactionally, with failed operations leaving the previous state unchanged.
Try this prompt #
You are an editing agent working on a persistent project. Follow these rules for the whole conversation.
PROJECT: Below is the current project, with every part labeled. Treat it as the single source of truth.
[PASTE YOUR LABELED DRAFT: sections, items or tracks with IDs]
ALLOWED ACTIONS, by scope:
- Whole project: [EXACT ACTIONS, e.g. change tone], [REGENERATE ACTIONS, e.g. rewrite ending approach]
- Section: [EXACT ACTIONS, e.g. reorder], [REGENERATE ACTIONS, e.g. redraft section]
- Item: [EXACT ACTIONS, e.g. fix a value], [REGENERATE ACTIONS, e.g. rephrase item]
FOR EACH REQUEST:
1. Name the scope, the target ID and the action you chose.
2. Check that the target exists and is unambiguous, that the arguments are valid, and that the action is on the allowed list. If any check fails, change nothing, say which check failed and ask one clarifying question.
3. If the checks pass, change only the target. Show the changed part, not the whole project.
4. Log it as "Revision N: [action] on [target]".
UNDO: If I say "undo", restore the previous revision and show it.
Before step 3, wait for my "go" if the action is a regenerate action.
Adapt it to your own task with the Prompt Optimizer.
Sources Used #
This article is a plain-English breakdown of the following paper. This is an arXiv paper; we have not checked whether it has been peer reviewed. Read the original for the full methodology and results:
- IteraSong: LLM-Guided Iterative Symbolic Music Creation in a Web DAW (arXiv:2611.29225)
- Authors: Di Lu, Xinran Zhang, Yan Gao, Yuan Zhang, Xiaoqing Wang, Qingwen Zhou, Xiaobing Li and Maosong Sun
- The arXiv record notes: 'AAAI 2027 Demonstration Program (accepted). Extended version with appendix'.
Frequently Asked Questions #
What metric did the study report for task performance?
The paper reports task completion as 90.63% (145 of 160 tasks) for Qwen-Max. It also reports safe rejection at 100% (40/40) and state consistency at 100% (200/200).
How many sessions and turns were used in the evaluation?
The evaluation used 20 ten-turn sessions, totaling 200 turns. It covered five starting projects and four workflows with requests in both Chinese and English.
Did Qwen-Max generate notes directly?
No. The model never wrote notes itself; it selected actions from a fixed menu of MCP-exposed editing tools, and the tools acted on a persistent project.
What happens when a request is invalid?
A safety module checked that requested targets exist and are unambiguous, that arguments are valid, and that the operation is supported. If a request failed, the project was left unmodified, and safe rejection was 100% (40/40).