hydra_sketch
Replace the current Hydra composition with a new sketch, validating code before applying. Splits sketches into editable blocks and refuses to overwrite human-written code unless take=true.
Instructions
Replace the entire composition with a new sketch: dry-run all of it, hush, then run.
Use this to start a fresh idea, not to add to one — hydra_block adds. Split the sketch into blocks with marker lines so each part can be revised on its own later:
// @block base
osc(30, 0.05, 1.2).out(o0)
// @block warp
src(o0).modulate(noise(2), 0.1).out(o1)
render(o1)Code with no markers becomes one block called main.
If the document holds any human-written blocks this is refused (human_blocks),
because a sketch would erase them. Pass take=true only if the person playing asked for a
fresh start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| take | No | ||
| validate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |