59 Commits
Author SHA1 Message Date
nvrl 1fefdf9d41 Run the image graph on the GPU after the visualiser
ImageChain copies the visualiser's frame in, draws one pass per top in
dependency order into ping-ponged Rgba16Float targets, and writes the
output top into an sRGB texture that sigil presents, screenshots and
pipes to ffmpeg instead of the scene. Ping-ponging gives feedback its
previous frame and resolves backward or cyclic wires to last frame's
output. Textures are rebuilt only when the wiring changes; parameters are
per-frame uniforms read from the visualiser's modulator.

The raw wgpu for the passes lives next to ShaderPipeline in shader.rs.
2026-09-27 14:09:55 +02:00
nvrl 606228bb3b Apply cargo fmt 2026-09-27 13:59:38 +02:00
nvrl 7a760f2fc5 Remove stale screenshots 2026-09-27 13:59:28 +02:00
nvrl 3052b7ffdb Add target-bitrate rate control and encode-format bundles
Engine: --bitrate <kbps> switches the opaque x264 path from CRF to
single-pass ABR (maxrate 1.5x, bufsize 2x) for an upload size budget.
ProRes/VP9 ignore it. True 2-pass isn't possible with the single
streaming frame pipe.

Launcher: the render step offers format bundles (H.264/MP4, ProRes
4444/MOV, VP9/WebM). Each sets transparency and the output extension,
which is how the engine picks the codec. It also gets a CRF vs bitrate
toggle, which only applies to H.264.
2026-09-27 13:59:14 +02:00
nvrl a33385c6e3 Write reproducibility sidecars next to renders
A render now writes <out>.args.txt (the verbatim command line) and,
for graph-driven modes, <out>.routes.ron (the resolved modulation
graph). Because renders are bit-reproducible, these two files are
enough to re-run a render exactly. A write failure only warns.
2026-09-27 13:59:01 +02:00
nvrl 80869af6ad Live-patch a running sigil from a launcher node editor
Engine: in live mode, RoutesWatch polls the --routes file's mtime every
250 ms and installs a changed graph. Node state survives where ids
match, and a parse error keeps the running graph. --render never
watches, so renders stay bit-reproducible.

Launcher: the modulation step gets a Matrix / Nodes toggle. Nodes is an
egui-snarl editor over the same Graph: an audio-in node, the control
nodes, and a targets node that holds per-route amounts/thresholds. With
live patch on (default), live runs always pass --routes, and every
edit rewrites that file atomically (tmp + rename) while sigil runs.
2026-09-27 13:57:43 +02:00
nvrl 0f08027eab Add CHOP-style control nodes to the modulation graph
Graph gains optional nodes (Math, Shape, Remap, Lag, Env, Counter,
Integrate, Lfo, Noise, Hold). Node inputs take a constant, an audio
source or another node, and routes can start at a node instead of a
source. A new Modulator runtime evaluates them in topological order
(a cycle's back edge reads the previous frame) and owns node state,
which set_graph keeps across edits where id and kind match. It
replaces Graph::modulation/fires in sigil and tunnel.

New fields are serde-defaulted and skipped when empty, so old RON
files load and a node-free graph serialises unchanged. Adds a Patched
preset that shows the nodes off (kick envelope, noise swirl, hat step
sequencer).
2026-09-27 13:57:13 +02:00
nvrl 034ddafa7b Split the launcher into its own workspace and bump dependencies
The newest nannou_egui (0.19) requires nannou 0.19, and nannou 0.20 is a
Bevy rewrite, so the engine stays on nannou 0.19. Sharing one lockfile
with it caps the launcher at egui 0.30. The launcher never links the
engine, so it now has its own workspace and lockfile and moves to
eframe/egui 0.36. It still path-depends on sigil-model and builds into
the root target/ (sigil-gui/.cargo/config.toml), so sigil-gui still
lands next to sigil.

- engine: cpal 0.18 (device names via DeviceDescription, cpal::Error,
  StreamConfig by value), ron 0.12
- launcher: eframe/egui 0.36 (App::ui, Panel, integer margins,
  Ui::close, DroppedFile::path), rfd 0.17, ron 0.12
- CI, build scripts and docs build the launcher via its own manifest
2026-09-27 13:56:37 +02:00
nvrl b0c06421ee init 2026-05-29 00:57:08 +02:00