The visuals integrate their state frame by frame, so a preview that
only warmed up for a second after a seek showed a different shape than
the render at the same moment. The preview now steps on the render's
frame grid (frame n at n / render_fps, fixed dt) and re-simulates from
0 s after a seek or rebuild: the CPU half of every frame, the GPU half
for the last second only. A seek to 250 s takes well under a second;
sigil, tunnel, ophanim and ferro match a real render within encoding
noise, field (GPU smoke) approximately.
scene::step splits into advance (CPU) and draw (GPU). A bad argument
list no longer replaces the last good one.
sigil --preview <file> plays the track itself (new seekable player) and
renders the frames a --render of the same flags would draw, at a small
size, onto stdout. stdin takes play/pause/seek and whole new argument
lists; colours, gains and effects apply in place, a new visualiser,
form or size rebuilds and warms up for a second. A bad flag no longer
kills a running preview.
The decode loop is shared: analyze_file and the in-memory Decoded track
run the same TimelineBuilder, so the preview analyses what a render
does. The per-frame scene step moved to scene.rs for both loops.
The quick start plus seven-step wizard is replaced by one page: a rail
of sections on the left (Look, Colours, Shape, Motion, Effects,
Modulation, Output, Settings), the selected section in the middle, and
a launch panel on the right with the track, live vs render, a summary
of the output and the big button with the run's progress. Every setting
is one click away; nothing is gated behind Next.
- Colours: palette cards plus an editor for picked colours (bass and
bright hue, accent, highlight, background, saturation, brightness)
sent as sigil's new colour flags, with a gradient preview; colour
sets can be saved as palettes.
- Looks: saved setups (formerly profiles, still loaded from old saves)
show in the gallery next to the genre looks, with apply, rename and
delete. A look keeps the track, output and paths of the session.
- Effects: effect cards, bloom strength, feedback, transparency. The
transparency toggle switches the render container so alpha survives.
- Shape: visualiser cards and toggleable form cards with thumbnails.
- Settings: dark, light or system theme and an accent colour for the
launcher, the sigil binary with a way back to the bundled one, the
exact command, the live keys.
- Renders go next to the current track unless a path is chosen; old
saves drop the quick start's stale output path.
With only --hue-from (or --hue-to) set, both arc ends took the picked
hue and the colour stopped moving with the music. The unpicked end now
keeps the palette's arc end (or the stock arc's).
--hue-from, --hue-to, --accent, --highlight and --background take #rrggbb
colours layered over --palette (or the look's palette); --saturation and
--brightness trim the result. --bloom sets the halo strength that was a
fixed 0.5. The shaders still cap bloom where the feedback trail would run
away (about 0.5), so in practice it turns the glow down. Defaults render
unchanged.
CustomColors layers picked colours over a palette's grade: a bass and a
bright colour whose OKLCH hues become the arc the music sweeps (with
lightness and saturation leaning toward the picks), an accent hue, and
literal highlight and background colours, plus saturation and brightness
trims. Unset slots keep the palette's own, so an empty set changes
nothing.
Also adds the sRGB to OKLCH inverse, hex parsing and formatting, and a
Grade::sweep for gradient previews; swatch() moves onto Grade so custom
grades can show one.
cargo reads audio-visualizer/.cargo/config.toml from the cwd, not from
--manifest-path, and a RUSTFLAGS env var replaces config rustflags anyway,
so the script's sigil.exe lost --export-all-symbols and with it the
NvOptimus/PowerXpress hints. Pass the flag explicitly.
Theme: egui keeps separate dark and light styles, and set_visuals only
wrote the active one (dark, before the first frame). On a Windows machine
in light mode the window switched to egui's untouched light style on
frame one while the cards kept painting dark colours. Both styles are now
installed, the theme preference is set explicitly (dark by default), and
every painted colour comes from per-frame tokens that follow the active
theme and accent.
Paths: the launcher saved an absolute sigil path once and never looked
again, so moving or re-extracting the bundle left a dead path that was
only editable on the last wizard step and came back with every profile.
sigil is now resolved each time: an optional override if it exists, else
the sigil next to the launcher, else PATH. ffmpeg is looked up next to
the launcher too, and its folder goes first on the child's PATH, so the
bundled ffmpeg is found. Neither the override nor the launcher theme is
stored in a profile.
egui-snarl 0.12 reserves the output pin's width to the right of the
right-to-left cursor, so the label sat under the pin and was clipped by
the node frame. Add the pin's width as space before the label.
The flow field was layered fBm over black and read as grainy haze. Now
the feedback loop runs a small smoke simulation: each frame the previous
frame is advected (RK2 back-trace) along buoyancy + curl noise (3D
simplex, so eddies evolve) + the emitters' own flow, thins out with
height, and emitters add smoke with over-compositing.
- Two plumes breathe with the bass line; kicks and downbeats blow puffs
that spread and spin; the drop landing bursts; hats throw embers the
smoke drags into streaks; a gap shuts the plumes and the smoke hangs.
- Sections set the mood (drift, fill, billow, hang); growl gives finer
eddies, mids stir.
- Grain and scanlines are skipped here (they would build up in the
smoke); the strobe is undone from the history like ophanim's.
- --no-feedback draws a still noise plume instead.
- --mode smoke is an alias for field; launcher and docs say smoke.
The holographic lattice read as white noise: a raymarched strut lattice
under a per-pixel dot mask, washed out by long feedback. Replace it with
one clear image: a tunnel of neon rings the camera flies down, a ring per
beat phase-locked to the bar, the downbeat ring in the accent colour.
- Kicks (new WAVE trigger) send light waves racing away down the tunnel;
hats run packets down the corner rails and dust motes fly past; a gap
blacks the rings out, the drop opens the light at the end.
- Sections set the speed (1/2, 1 or 2 rings a beat) and the shape. The
six --lattice names now pick profiles (square, wavy circle, beaded
hexagon, diamond, circle, twisting hexagon).
- No raymarch: each pixel tests 40 ring planes, so cost is flat and the
lines are anti-aliased.
- Target ids 0..=18 keep their slots (renamed: radius, width, wobble,
twist, glow, dust, speed, punch, focal, rails, core); WAVE is 19.
- Launcher: profile thumbnails and new copy.
Three bass-music looks, one per mode family, all on the Riddim modulation
preset:
- Riddim: the ferro drop in the riddim style, steel and acid green.
- Tearout: a tunnel through helix, cubic and octahedral lattices that slams
shut in every gap and flares on the drop, in ember.
- Melodic Dubstep: a soft gold sigil (rose, spirograph, lissajous) that throbs
with the bass line, no grit.
A look can now carry a bass style (ferro only); both the engine's --look and
the launcher's quick-start apply it, and --bass-style still overrides it. The
new Toxic palette is steel with an acid-green accent.
The bin's bass pump (--low, the launcher's throb slider) now swells the drop
by up to about 10 percent, smoothed like ophanim's so a kick does not double
its size.
ferro gets a mode card, its own saved modulation graph, retitled gain
sliders and a bass-style picker on the visualiser step. auto (the default)
emits nothing, so sigil picks the style from the track; a picked style is
passed as --bass-style. The review step shows the style.
A fifth mode: a ferrofluid drop whose magnetic field is the bass. Ported from
the pl8list browser visualiser, where the drop is a vertex-displaced sphere;
here the same displacement (music-driven simplex lobes, terraces, crinkles,
thorns and a kick shock wave, plus 60 spike cones on a Fibonacci lattice) is
raymarched as a radial height field inside a bounding sphere, and the light it
throws on a wall behind it is analytic.
The CPU side steps the spikes and the squash-and-stretch springs: every womb
of the bass line raises the lattice, kicks charge the spots round the rim the
bar position picks (one per beat for riddim, so the same crown rises every
bar), snares jolt them, a gap melts them flat and the BURST trigger (the drop
landing by default) shoots them all out. Sections scale the field, so intros
stay calm and drops go full hedgehog.
The character comes from a bass style in sigil-model (dubstep, riddim,
tearout, deathstep, melodic, colourbass, halftime, wonk), picked with
--bass-style or from the track's tempo and tonality. The mode is
graph-capable with its own target table and default graph; the Riddim preset
covers it too. Downbeat triggers now fire at 0.6, so a 30 fps render cannot
sample past the pulse.
The CPU half is a separate Sim struct, so tests step it headless: kicks raise
a crown, a gap melts it, the drop bursts every spike once, and the shader
validates under naga with a uniform block the size of the CPU struct.
The sandbox and CI have no GPU, so a WGSL error only showed up when the
pipeline was created on a real device. naga (the same version wgpu uses) now
parses and validates every mode shader, with effects.wgsl prepended as the
pipeline builds it, as a dev-dependency test. A helper also checks that a
shader's uniform block is the size of the CPU-side struct.
Nine new sources in a "bass music" group: sub, bass, growl, wobble,
wobble_rate, drop, gap, bar and downbeat. RON stores variant names, so
existing route files still load; the matrix and the node editor list the new
rows automatically.
The Riddim preset is the stock graph for every graph mode with the loudness
routes halved (a drop pins loudness at its ceiling) and a per-mode set of
bass routes on top: the bass-line envelope throbs the form, the growl
roughens it, a drop flares the glow, a gap collapses it, and the strobe fires
on the downbeat.
Loudness is useless for dubstep and riddim: in a drop the sub sits at its
ceiling and nothing moves. The movement is in the changes, so the analyser
now also tracks the bass line's own envelope (every "womb" of a wobble), how
open the wobble's filter is (growl), how fast the mids move, the wobble rate,
drops, gaps (the stop before a drop) and the position in a 4-beat bar with a
downbeat pulse locked onto the strongest kicks.
Ported from the pl8list browser visualiser's feature tracker, which runs on
the same 2048-point FFT. It lives in a new bass module stepped from
Analyzer::compute, so live and --render see identical values. --analyze
prints the share of drop and gap frames, the median wobble rate and the
downbeat count.
A fourth mode for angelcore: three gold rings on gimbals, covered in eyes
that open on the kick, mid and hat onsets, around a glowing core with six
feathered wing blades and light shafts. Only the rings and eyes are
raymarched (inside a bounding sphere); the core, wings and shafts are
analytic, so it renders about 4x faster than tunnel. Sections drive it: a
drop opens every eye and speeds the rings up, a build pulls them into line,
a breakdown folds the wings. The track fingerprint picks the eye count.
It frames by the short side, so 16:9, 9:16 and 4:3 all fit, and mattes
cleanly with --transparent.
It is graph-capable: sigil-model gets an ophanim target table (effects at
ids 7..=11 like the other modes, plus spin, tilt, eyes, core, wings, rays
and a blink trigger) and Graph::default_ophanim. Preset::graph now takes a
GraphMode instead of a sigil/tunnel bool, which also carries each mode's
target table and default graph.
That fixes the live overlay and the launcher treating every non-sigil mode
as tunnel: field no longer shows a tunnel matrix or lattice picker. The
launcher lists ophanim as a visualiser with its own saved graph.
The launcher opens on a one-screen quick start: drop a track, pick a genre
look card (with palette swatches) and an output (live preview, MP4, or a
transparent ProRes editor element, in 16:9, 9:16 or 4:3), then render.
The full wizard stays one click away under Advanced with the same settings,
and gains a palette picker; applying a look fills mode, form, gains,
effects, modulation preset and palette.
Launched runs now stream sigil's output: a progress bar with fps and ETA,
Cancel/Stop, and Open folder when done. Closing the window mid-render is
refused, since dropping the pipes would kill the encode. sigil-gui <file>
starts with that track selected.
Also adds a theme module (colour tokens, spacing, card and swatch widgets)
and a larger default window.
ffmpeg inherits sigil's stderr, so its banner and carriage-return stats
were interleaved with sigil's own progress lines, which the launcher now
parses. Log errors only.
A look bundles mode, form, gains, effects, modulation preset, palette and
a suggested alpha clip, defined once in sigil-model: angelcore, synthclub,
jerseyclub, hoodtrap and mylancore. The engine applies one as the base
layer under every other flag; without --routes, graph modes use the look's
preset graph.
The trail stores the finished frame and reads it back next frame, so the
bloom and the full-screen strobe fed their own history:
- With a long trail (low --fade) the bloom's loop gain passed 1 and the
frame ran away to solid white. Cap bloom at 1.5 * (1 - decay), which
keeps stock settings at full bloom and scales it down for long trails.
- Each strobe lingered for the whole trail as a coloured full-screen wash.
Pass last frame's strobe mix and accent and invert it on the history
before decay (opaque mode; transparent gates strobe per pixel).
The unwired-input placeholder was 1x1, which nannou's TextureBuilder turns
into a 1-D texture; wgpu rejects 1-D render attachments, so any graph with
an image chain (e.g. the Trails preset) panicked when the chain was built.
Use a 2x2 texture.
A palette is a colour grade shared through sigil-model: it confines the
centroid-driven base hue to an arc, fixes the accent offset, scales OKLCH
chroma and lightness, and replaces the hard-coded debris, warm-core, ember
and void-tint colours, which now travel in new UBO rows. The music still
moves the colour, inside the palette.
Ships auto (unchanged output, up to sub-LSB shader constant folding in
tunnel), seraph, neon, club, ember and moon. The engine's oklch now comes
from sigil-model so the launcher can draw matching swatches.
Fit the camera ray to the short screen axis so portrait frames show the
whole sigil instead of cropping it (landscape output is byte-identical),
rotate the feedback swirl in aspect-corrected space, and letterbox the live
frame instead of stretching it on fullscreen or resize.
Add --aspect 16:9|9:16|4:3|1:1, which reshapes the quality preset's sizes
(portrait live windows are capped at 1080 tall). The launcher gets a live
aspect selector and 4:3 render presets, always emits the picked render
size so the highlighted preset is what gets encoded, and no longer couples
the live window size to the render preset.
Transparent renders wrote linear max(col) as alpha next to sRGB-encoded,
black-premultiplied colour, which editors read as straight alpha: glow came
out dim and dirty, and void grain plus strobe flashes leaked alpha across
the whole frame.
Treat the read-back frame as premultiplied over black and derive straight
alpha on the CPU (After Effects Unmult style), after an area downscale of
the supersample buffer so soft edges don't fringe. Gate grain and strobe by
coverage in transparent mode, emit sRGB-encoded coverage alpha for the live
window, tag ProRes as apl0, and add --alpha-clip (launcher: matte clean-up)
to drop faint haze.
The Nodes view gains a scene node, an image-out node and image ops
(feedback, transform, displace, level, composite) on the same canvas as
the control nodes. Image pins are teal and only accept image wires; a
top's parameter pins take control wires from audio sources or nodes, and
show a constant when unwired.
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.
Graph gains an optional ImageGraph: a list of image operators (feedback,
transform, displace, level, composite) wired from the scene, each other or
black, with one top marked as output. Top parameters are control Inputs,
so audio sources and CHOP nodes can drive them; the Modulator evaluates
them each step and keeps a deterministic clock for animated ops.
An empty image graph is a passthrough and serialises to nothing, so
existing RON files and node-free graphs are unchanged. Adds a Trails
preset that patches loudness, kick envelope and flux into a feedback,
displace and level chain.
- The source step probes the picked file's metadata (duration, sample
rate, channels) with symphonia and warns when it can't be read.
Nothing is decoded.
- Launch is gated on full validation: a source is present, ffmpeg is
on PATH for a render, and the sigil binary resolves. The review step
shows why it is blocked.
- The review step can copy the command and do a dry run, which writes
the routes file and shows the exact command without launching.
- A dark theme with the neon accent to match the engine.
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.
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.
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.
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).
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