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

19 lines
498 B
Text

use mod.flow.*
/** The sound to synthesize. */
let prompt = Input{ type: @text default: "a heavy steel hatch slams shut in a concrete tunnel" at: vec2(40, 120) }
let sfx = Sfx{
prompt: prompt.text()
seconds: 4.0
at: vec2(360, 120)
}
/** The generated sound effect. */
let sound = Output{ type: @audio value: sfx.audio() at: vec2(680, 120) }
Flow{
label: "Sound effect"
brief: "Synthesizes a four-second sound effect from a concise description."
prompt, sfx, sound
}