ARRANGE

ARRANGE

Play,Fit,Sing.

Keep your piano recording and add a singing voice to it. An LLM agent compiles the composer's words, the notes they play and their own voice into a sung line, one readable step at a time, and stops at every step until the composer approves.

Listen · All the Things You Are

26 seconds of All the Things You Are (Jerome Kern, Oscar Hammerstein II) played live by Yuval Cohen, a short excerpt for research commentary. The words were written for this line; they are not the song's lyrics. The piano is never replaced. The voice is SoulX-Singer, an open singing model, copying the author's baritone.

If you have sixty seconds

  1. EditTurning each request into typed edits made 96% of the requested changes and touched nothing else. Rewriting the whole plan left 11 of 48 plans broken.
  2. ModelsTyped edits were the most reliable way to revise for all five LLMs we tried, from Claude to open models run locally.
  3. ReadReading the score found three compile errors that the finished audio only hinted at.
  4. SingBlind, the composer rated SoulX-Singer 95.9 and Seed-VC 88.5 of 100. A copied voice keeps its colour, not its technique.
  5. KeyA stated rule matched the composer's ear within 1.5 semitones. LLMs picked keys 4 to 7 semitones too high.

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.

The program, in three languages Plain English Notes played on keys Their own voice

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.

𝄞 4 4 1 2 Qui-et lan-terns lightthehill~ 1234567 K W AYAH TL AE NT ER N ZL AY TDH AHHH IH L "note 5 should be E4" set(row=4, pitch="E4")
An illustration with made-up words. Bar numbers follow the composer's own beats; each syllable has a grey number for its place in the line; under it, the sounds the singer receives. A circled note and a short message become one typed edit.
  • 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 edits96%
Patch by path88%
Rewrite the plan81%

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

Claude Sonnet0.98
no ARRANGE0.33
Claude Opus0.90
no ARRANGE0.69
Claude Haiku0.83
no ARRANGE0.62
Claude Fable0.94
no ARRANGE0.69
Gemma 4 31B0.90
no ARRANGE0.46
Qwen 3.5 27B0.83
no ARRANGE0.50

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

SoulX-Singer95.9
Seed-VC88.5
TechSinger built-in22.8

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

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 rule1.5
Top rule3.0
Median rule6.0
Clip rule6.0
LLMs asked directly4–7

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

Cite

@misc{tan2026arrange,
  title        = {{ARRANGE}: Agentic Skills for Layering Vocals},
  author       = {Tan, Henry},
  year         = {2026},
  howpublished = {\url{https://github.com/htansetiawan/arrange}}
}