makepad/libs/flow/recipes/templates/expanded-prompt-to-music.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

18 lines
791 B
Text

use mod.flow.*
/** The song idea to expand into arrangement and lyrics. */
let prompt = Input{ type: @text default: "slow dub techno at 92 BPM with deep chord echoes" }
let expand = Llm{
system: "Write a production brief followed by a Lyrics: section with original section-tagged lyrics. Use [Instrumental] when no vocals are requested."
prompt: prompt.text()
max_tokens: 4096
}
let music = Music{ prompt: expand.text() seconds: 180 }
/** Publish the generated song into the flow asset library. */
let published = Publish{ value: music.audio() namespace: "flows" tags: ["flow", "music"] }
Flow{
label: "Expanded prompt to music"
brief: "Expands a song idea into a production brief and lyrics, then generates a three-minute song."
prompt, expand, music, published
}