An English compiler
Skills as compile steps翻訳Song generators turn a prompt into a finished track, but they replace the composer's playing and show none of the decisions inside. ARRANGE treats adding a voice as compilation. The composer writes the program; an LLM agent compiles it one skill at a time. Each skill writes something the composer can read, and stops there.
Listen
Transcribes the piano and builds the bar grid from the composer's own tapped beats.
Are the bars counted the way I count them?
Play the Line
The composer plays the melody on keys over the recording. Pitch and rhythm in one pass.
Is this the line I meant?
Fit
Puts the words under the notes and the sounds on each syllable, engraved as a score.
Every syllable on the right note?
Sing
An open model sings the approved score in a key the voice sings comfortably, and each entry is measured.
Does it sing what the score says?
Mix
Puts the voice in front of the piano and exports stems for a DAW.
Balance and placement right?
English is less deterministic than a programming language. The skills manage that by moving every decision they can into something exact: scripts that do the arithmetic, a small vocabulary of edits that a script applies, and a score that fixes what is sung. The models underneath can be swapped without changing the workflow.
The Score Canvas
The readable intermediate楽譜The canvas shows the decisions the compile made, in notation the composer already reads, at the level where they are made: the note and the syllable. Composer and agent point at the same thing.
Every note can be named
Bars, beats and a number under each syllable mean "bar 18" or "note 5" is the same place for the composer and the agent. A correction is a local edit, not a new generation.
Every note can be heard
Click a note to hear the piano and the voice from that point, and switch between the voices rendered so far.
The sounds are shown
How each syllable is pronounced on its note decides whether a line sings or stumbles. "It feels choppy" becomes a fixable instruction.
Reading finds errors
Three faults the audio only hinted at were found by reading: a consonant sung as a vowel, words silently left unsung, and a word broken at a note join.
Typed edits, not rewrites
Five LLMs, frozen requests型A revision must change what the composer asked for and nothing else. The composer asks in English; the agent compiles the request into typed edits, short instructions from a fixed vocabulary that each name one operation and its arguments, the way a compiler turns source code into instructions. As in a strongly typed language, a script checks each edit's operation and arguments and rejects one that does not fit before it runs, so nothing an edit does not name can change. Asking a question is one of the edits.
- Bring the strings in two bars later.shift_entry(strings, +2 bars)
- Use the second vocal take.choose_candidate(vocal, 2)
- Keep my guitar exactly as I played it.lock(L6)
- breeze should end on a zpronounce(breeze, "B R IY1 Z")
- Make it more emotional.ask("strings softer, later, or a different take?")
Requested changes made · Claude Sonnet, 48 tries per arm
Typed edits changed nothing else. Rewriting changed about 30 unrelated fields per try, overwrote the composer's decisions 75 times and broke 11 of 48 plans.
Exact change, or the right question · typed edits against a rewrite with no ARRANGE notes
Typed editsRewrite, no ARRANGE
16 frozen requests, 3 tries each, on a real and a synthetic plan. Claude Fable is a frontier model, added to test whether ARRANGE still helps the strongest model. Gemma and Qwen ran locally.
What a copied voice keeps
Open singing models声The composer can give a short sample of a voice for the singer to copy. We tried eight voices, by singing from the score and by converting a line already sung, and the composer rated the results blind.
Blind rating by the composer, out of 100 · 35 clips
Same songs, singers and keys. SoulX higher by 7.4 (95% bootstrap CI 1.9 to 13.3). Hidden repeats came back within 4 points.
A similarity score rose from 0.88 to 0.92 while the composer heard the voice get worse.Fine-tuning on produced songs with doubled vocals · Section 5.4
Pitch is kept
97 to 100% of notes within a quarter tone of the score, in the four voices measured.
Colour transfers
Voices recognisable mostly by their timbre came through.
Technique does not
Voices known for belting, runs or vibrato did not, by either route.
A rule proposes, the ear decides
Choosing the key調A copied voice sounds like its singer only where that singer actually sings. We stated four rules for the key before listening, then asked the composer's ear in three layouts: 185 clips of eight voices.
Miss against the composer's key, in semitones · lower is better
Top note puts the song's highest note on the singer's 90th-percentile note. Every LLM we asked, with or without the measurements, picked keys too high.
"The voice does not have to struggle to hit the highest note, and a little tension is good."The composer's definition of the sweet spot
The skill uses Top note as its default, prints the other three, and offers keys around it to hear at the Sing checkpoint. What transfers is the method: measure the voice, state the rules before listening, ask the ear in more than one layout.
Use it, check it
Open code and results公開Install the skills in Claude Code
git clone https://github.com/htansetiawan/arrange mkdir -p .claude/skills cp -r arrange/skills/arrange-* .claude/skills/
Then ask in plain words: "add a voice to my recording piano.wav with these words". The model backends are listed in docs/setup.md.
Recompute the paper's numbers
pip install -r requirements-test.txt python -m pytest -q tests
No model is called; the tables are rebuilt from the stored model answers. Data from two songs is not distributed, so three experiments recompute on the remaining songs, and their READMEs list what differs.
In the repository
skills/Five skills in the Agent Skills formatexperiments/revisionsTyped edits against rewrites, five LLMsexperiments/canvas-edits62 requests on the score canvasexperiments/correctionsThe composer's own correctionsexperiments/voicesVoice transfer, ratings, measuresexperiments/keysKey rules and the listening study
Cite
@misc{tan2026arrange,
title = {{ARRANGE}: Agentic Skills for Layering Vocals},
author = {Tan, Henry},
year = {2026},
howpublished = {\url{https://github.com/htansetiawan/arrange}}
}