ComfyUI Node
Apply Arrangement
Experimental (creative modes can give unexpected results - try them and listen). Writes the writer's section plan into the score: chords that fit the melody, the instrument line of every section (written note by note by Plenio), key lifts and the tempo - each step validated. The result must pass YuE2's parser, read back unchanged, open in the score editor and fit YuE2's context; otherwise the score stays as it was and the report says why. With arrangement off (and for a cover kept at its original song flow) the writer is not asked at all.
Apply Arrangement
- brief
- engine
- first
- score
- report
- reask_prompt
- reask_schema
- state
◄score—►
◄seed0►
◄answer—►
◄style—►
◄lyrics—►
CategoryPlenio/Score
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| score | STRING | The score to arrange (native two-voice ABC). | |
| brief | PLENIO_BRIEF | Song Brief or Cover Brief: the creative mode and the closeness. | |
| seed | INT | 00–18446744073709550000 | Varies the notes of the instrument lines Plenio writes (the same seed, the same notes). |
| answeropt | STRING | The writer's answer to Compose Arrangement's prompt; requested only when a plan is wanted. | |
| engineopt | PLENIO_ENGINE | The music model: YuE2's context budget is checked with it. | |
| styleopt | STRING | The song's style, for the exact context budget (a cover's is estimated). | |
| lyricsopt | STRING | The song's lyrics, for the exact context budget (a cover's are estimated). | |
| firstopt | PLENIO_ARRANGEMENT | The first Apply Arrangement's state: this node is then the re-ask round - it reads the writer's second answer (only when sections were asked again) and keeps the better arrangement. |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| score | STRING | The arranged score, or the score as it was. |
| report | PLENIO_REPORT | What was arranged and kept, or why the score stayed as it was (for the Song Sheet). |
| reask_prompt | STRING | The re-ask for the writer: the sections whose chords the harmony guard had to repair (empty when there are none, and in the re-ask round). |
| reask_schema | STRING | The re-ask's JSON schema, for Local LLM. |
| state | PLENIO_ARRANGEMENT | For the re-ask round's Apply Arrangement. |