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.

By jplenio·Created 17 days ago·Updated about 19 hours ago· 40
Apply Arrangement
  • brief
  • engine
  • first
  • score
  • report
  • reask_prompt
  • reask_schema
  • state
◄score—►
◄seed0►
◄answer—►
◄style—►
◄lyrics—►
CategoryPlenio/Score

Inputs (8)

NameTypeDefaultDescription
scoreSTRINGThe score to arrange (native two-voice ABC).
briefPLENIO_BRIEFSong Brief or Cover Brief: the creative mode and the closeness.
seedINT00–18446744073709550000Varies the notes of the instrument lines Plenio writes (the same seed, the same notes).
answeroptSTRINGThe writer's answer to Compose Arrangement's prompt; requested only when a plan is wanted.
engineoptPLENIO_ENGINEThe music model: YuE2's context budget is checked with it.
styleoptSTRINGThe song's style, for the exact context budget (a cover's is estimated).
lyricsoptSTRINGThe song's lyrics, for the exact context budget (a cover's are estimated).
firstoptPLENIO_ARRANGEMENTThe 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)

NameTypeDescription
scoreSTRINGThe arranged score, or the score as it was.
reportPLENIO_REPORTWhat was arranged and kept, or why the score stayed as it was (for the Song Sheet).
reask_promptSTRINGThe 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_schemaSTRINGThe re-ask's JSON schema, for Local LLM.
statePLENIO_ARRANGEMENTFor the re-ask round's Apply Arrangement.