makepad/libs/flow/recipes/templates/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

23 lines
713 B
Text

use mod.flow.*
/** Genre, tempo, mood, vocals, and arrangement. */
let prompt = Input{ type: @text default: "slow dub techno, 92 BPM, deep chord echoes, instrumental" at: vec2(40, 80) }
/** Optional section-tagged lyrics; leave empty for instrumental music. */
let lyrics = Input{ type: @text default: "[Instrumental]" at: vec2(40, 240) }
let music = Music{
prompt: prompt.text()
lyrics: lyrics.text()
seconds: 180
at: vec2(360, 160)
}
/** The generated song. */
let song = Output{ type: @audio value: music.audio() at: vec2(680, 160) }
Flow{
label: "Music"
brief: "Generates a three-minute song from a production brief and structured lyrics."
prompt, lyrics, music, song
}