59 Commits
Author SHA1 Message Date
nvrl ac01baf9d4 Let the Sigil Tunnel take the sigil's energy through a build
CI / sigil-model (fmt + clippy + test) (push) Failing after 53s
CI / engine + launcher (clippy + build) (push) Failing after 19s
CI / windows cross-build (x86_64-pc-windows-gnu) (push) Failing after 20s
With `--mode sigil --under sigil-tunnel` (the energy look) the sigil
dims to half its glow as a build's tension rises and flares on the
drop's release, while the tunnel brightens, opens up and speeds toward
the drop. The rings widen with tension, cancelling the figure's own
build contraction, a gap pulls them in toward the axis and the release
throws them back out.
2026-11-12 01:11:26 +01:00
nvrl fa53266268 Make the Sigil Tunnel the sigil's memory, locked to the beat
Each ring now carries its own points: the figure as it was half a beat
earlier per ring of distance, interpolated from a 4 s history, so a
morph, kick or spin ripples away down the corridor. Parked slots are
never interpolated, so nothing streaks in from the park position.

The flight takes the light tunnel's bar lock: half, one or two rings a
beat by section, phase-pulled so a ring passes on every beat and the
accent ring on the downbeat. Builds speed up with tension, gaps stall.
The ring twist and axis bends now divide the 1024-ring wrap, so the
wrap no longer pops.

Per-ring bounds (inner and outer radius, half depth) let a ray skip
rings it never comes near: a 20 s 432x540 clip renders in 18 s instead
of 62 s (23 s before the echo), with identical output.
2026-11-12 00:11:09 +01:00
nvrl 8f0b4971b1 Add the Take My Energy look over a Sigil Tunnel
`--look energy` (Syzy-inspired): a bass-driven sigil on lissajous,
supershape and knot forms over a Sigil Tunnel of its own rings, in a new
`energy` palette (electric cyan through violet, ice-white highlights),
Riddim modulation preset, short trails and no grain, scanlines, strobe,
freeze, glitch or swirl.

Looks can now name a background layer (`Look::under`). The CLI applies
it with `--look` (an explicit `--under` still wins) and the launcher sets
it when a look card is applied, clearing the scene list; the launcher
also emits `--lattice` when the light tunnel is the background.
2026-11-11 23:49:00 +01:00
nvrl ec6cbce579 Add the Elastic Matter and Sigil Tunnel modes
Elastic Matter (`--mode elastic`): twisted thin-film membranes, an
inflating cutaway bubble and 24 spring-driven droplets that strikes tear
loose and springs pull back. Gaps slow physical time, drops expand the
scene. Direct audio response, no modulation graph.

Sigil Tunnel (`--mode sigil-tunnel`): a flight down a corridor of rings,
each the live sigil figure (spine, ribs, debris, spokes) spun and
flattened on the CPU, repeated along a bending axis with a per-ring
twist and shaded with sigil's closest-approach glow, colours and
feedback. Closest approach to each capsule is solved analytically
(14 rings x 48 segments per pixel, no raymarch). Near rings fade out
before they turn into end-on bands, the vanishing point stays dark so a
sigil drawn over it reads, and the trail is short. Shares sigil's
generator, backbone picker and modulation graph; the UBO gains one
flight row.

Both modes are in the live cycle, the launcher's Shape section, the
preview, timeline scenes and offline render.
2026-11-11 23:48:53 +01:00
nvrl c6fd6be80d Find drops as runs of top energy and bass in the score
Drops are now detected directly: runs of at least 8 bars near the
track's top combined energy + bass level, entered after a lift (a dip
in the bars before) or a step up, tolerating short fills, skipping
teasers. Their edges are forced section boundaries, novelty peaks inside
a drop are ignored, and drop runs set the Drop archetype. Bar loudness
is averaged as power instead of dB, and neighbouring sections of the
same kind and similar energy merge, so a drop is one section and drop
escalation counts real drops.
2026-11-11 23:48:19 +01:00
nvrl 8c07db565d Glide the director between shots instead of cutting
Shot changes now keep the camera's position and velocity and ease
through yaw, pitch, roll, dolly and framing; an orbit is entered and
left at the nearest equivalent yaw. Drops move faster, quiet sections
slower. With no hard cuts left, the modes no longer drop their feedback
trail on a cut, and the director no longer tracks held motion-blur
frames.
2026-11-11 23:48:09 +01:00
nvrl 9dfa58704f Re-read the lyrics file live and in the preview
The launcher's lyric editor saves as you type; a live window and the
preview now poll the --lyrics file (or the .lrc next to the track for
auto) every 250 ms and take the new lines. Renders never watch.
2026-11-10 22:32:57 +01:00
nvrl a0be1534cc Add captions and text placement to the text layer
Up to four --text captions, each with its own place (top, center, bottom,
corners), size, kick pulse and timing: always, between times, during a
kind of section, or from / until one ("from-drop" = after the first drop
to the end). Section timing comes from the score (render, preview); live
knows times and the drop it hears. {title}/{artist} fill in from the track.
The --text-* flags bind to the --text before them.

Captions draw into a second mask (one channel each) so every caption fades
on its own clock. The card and lyrics can move too (--card-place,
--lyrics-place, --lyrics-size), and --text-color / --glow-color override
the palette's colours. Place, When and Caption live in sigil-model, with
write_lrc for the launcher's lyric editor.
2026-11-10 21:41:56 +01:00
nvrl 8c24dd2245 Read MIDI and OSC controllers as modulation sources
New sources ctl1..ctl8 (knobs) and pad (a hit's velocity, decaying over
a quarter second). --midi [NAME] opens a MIDI input; the first eight CCs
that move become the knobs, or --midi-cc 21,22,... fixes the mapping,
and note-ons hit the pad. --osc PORT takes /sigil/ctl/1..8 and
/sigil/pad over UDP. --midi-ports lists the inputs.

Listener threads write atomics that the live loop copies into the
frame's Bands. Renders and the preview never open controllers, so their
sources stay 0 and output stays reproducible. Tested end to end through
an ALSA virtual port and a UDP socket; the live window itself was not
run (no display with a GPU here). Windows cross-check builds.
2026-11-10 19:07:01 +01:00
nvrl 3ba78abb56 Add a text layer: title card, synced lyrics, kinetic type
--card shows the track's title and artist (from its tags, or --title /
--artist) over the first seconds, or over a highlight clip's first
seconds. --lyrics reads synced lyrics from an LRC file, the .lrc next to
the track, or the track's lyrics tag. --kinetic punches the words on
kicks during drops and slams the title in at each drop. --font swaps the
bundled Noto Sans Bold.

Glyphs are drawn on the CPU (ab_glyph) into a mask with one channel per
slot and a quarter-size blurred copy for the glow and the shade behind
the words. A small composite pass runs after the image chain; it is
skipped when no words are showing. Everything is a function of song
time and the frame's bands, so renders stay bit-reproducible and the
preview matches them. The LRC parser lives in sigil-model.
2026-11-10 18:38:23 +01:00
nvrl e099a7113d Add the timeline editor to the launcher
The preview sends the form it reads off the track; the launcher shows it
as a strip under the scrub bar and in a new Timeline section. Per section:
kind, which earlier section it repeats, intensity and the visualiser it
shows. Borders drag, sections split at the play head and merge, and a
reset goes back to the analysis. Edits are kept per track (never in a
look), reach the preview over its score command and a render as --score.

Seeking to a section lands just past its start: the frame at the exact
start time can still belong to the section before.
2026-11-10 18:07:23 +01:00
nvrl cd1ba4f4c7 Move the song form into sigil-model; add --score and --score-out
Arch, Section and Score now live in sigil_model::form so the launcher can
show and edit the form the engine reads off the audio. Sections gain an
optional mode: a section naming a mode shows it (a Stack layer past the
--scenes that only shows where asked for).

--analyze --score-out prints the analysed form as RON; --score FILE uses
an edited one for a render or preview (fitted to the track's length).
The preview sends its analysed form once (SGS1) and takes a 'score'
command that swaps the form and re-simulates.
2026-11-10 17:43:37 +01:00
nvrl 09c79b977a Split harmonic and percussive energy in the analyzer
A causal median-filter HPSS in Analyzer::hpss: per bin, the median over
the last 9 hops estimates the harmonic part and the median over ±8 bins
the percussive part; soft masks share each bin's energy. Bands gains
harm and perc, and the modulation graph the Harm and Perc sources, so
drums and pads can drive different parts of a look. Same code live and
offline.
2026-11-10 17:15:43 +01:00
nvrl befeed2620 Take colours from the album cover
--cover [PATH] reads the track's embedded front cover (or a cover,
folder or front image next to it, or PATH), clusters it in OKLab and
casts the clusters as hue range, accent, highlight and a dark background.
They layer over the palette as custom colours; explicit colour flags
win. The launcher's Colours section gets a toggle.
2026-11-10 17:00:04 +01:00
nvrl 5c84981017 Add lens and hue-shift FX
Two display-stage effects in the shared FX table: lens (a soft vignette
and slight barrel bulge) and shift (rotates the hues about grey for a
moment on a strong harmonic change, not in the first seconds where the
chroma average warms up). Both default on like every FX flag.
2026-11-10 16:43:40 +01:00
nvrl ce59ad309c Add --clip highlight renders
--clip [SECS] (default 30) renders only the window around the song's
hardest drop, a quarter of it before the drop so the build leads in
(Score::highlight). The simulation fast-forwards without drawing to a
second before the window, then draws an unencoded second so trails are
full on the first frame; ffmpeg seeks the audio to match. The score is
now read in render::start. The launcher's Output section gets a toggle;
its default output becomes <name>-highlight.<ext>.
2026-11-10 16:31:23 +01:00
nvrl a11dbc4cad Add mode layers and per-section scenes
A Stack visualiser owns several modes. --under <mode> draws a second
mode behind the main one, covered where the main mode glows. --scenes
a,b rotates the song's sections through more modes after --mode: each
section shows the scene its score label picks (a repeated chorus comes
back in the same mode), builds keep the scene before them, drops cut
hard and other changes dissolve with the incoming scene's light breaking
through first. Hidden layers keep updating and drop their stale history
when shown again. The launcher's Visualiser section gets a layers row.
2026-11-10 15:01:52 +01:00
nvrl 3fd068dcd2 Add an HDR display stage to every mode
Mode shaders now write two targets: the clamped history their feedback
loop reads (float16 now, so trails no longer band) and the unclamped
HDR frame. A display stage in ShaderPipeline blooms the HDR frame with a
5-level pyramid outside any feedback loop, applies the strobe as an
exposure push instead of a flat pastel fill (so the strobe no longer
enters the trails and the un-strobe step is gone), tonemaps with a soft
shoulder above 0.8 and writes the 8-bit output.
2026-11-10 14:36:45 +01:00
nvrl 5063ff3f5a Add motion blur to --render
--motion-blur N draws N sub-frames per output frame across a full
shutter and averages them in linear light. Only the last sub-frame
enters the feedback history (ShaderPipeline::hold, ImageChain::hold),
so trails keep their per-frame tuning; a director cut stays raised
until the committed sub-frame. field steps its sim at the finer dt
instead. The launcher's Output section gets a slider.
2026-11-10 14:19:22 +01:00
nvrl dd05942c32 Frame the 3D modes tighter
Hero shots sit at 0.85 of the mode's rest distance and the wide end of
ophanim, sigil and ferro comes in (1.2 / 1.25 / 1.15): the rest framing
left the subject at a quarter of the frame.
2026-11-10 13:58:55 +01:00
nvrl a1463c0621 Hold the first drop back
Structure::regime blends a drop's look from the groove look toward the
full drop by the score's intensity (first drop 0.55 of the way, last
all out), and a drop's release pulse scales with it. Every mode's Regime
gets a field-wise Mix (mix_fields!); beat-locked or discrete fields take
the drop's value.
2026-11-10 13:47:21 +01:00
nvrl 58e9e0b5d4 Read the song's form before a render
viz/score.rs builds a Score from the whole timeline: bars from the bar
clock, z-scored per-bar features, a self-similarity matrix and Foote
novelty for section boundaries, labels for sections that repeat,
archetypes from the energy arc (builds = the bars before a drop) and a
drop escalation. --analyze prints it, --render logs it.

Render and the launcher preview install it into each mode's Structure,
which then takes the section, build tension and drop release from the
score at its song clock: sections change on their exact bar and a build
reaches full tension on the drop frame. Structure::cue feeds the
director, which cuts on every scored section change, holds phrase cuts
that would land just before one, and restarts its shot stream from the
section label, so a repeated chorus gets the same shots. Live stays
reactive.
2026-11-10 00:40:44 +01:00
nvrl 746af20492 Add raw dB levels to Bands
level_db and low_db are the overall and low-band levels before AGC. The
AGC'd loud/low drift toward 1 within ~15 s, so they cannot compare a
breakdown with a drop a minute later; the song-form analysis needs that.
2026-11-10 00:40:44 +01:00
nvrl 0f67350a90 Let the director frame field
field's state is its frame (the smoke sim advects the previous frame), so
the camera cannot move inside the sim. A second pass (field_view.wgsl,
on the image-graph pass primitives) frames the finished sim frame
instead: zoom in, pan and a little roll. view() raises the zoom where a
roll or pan would show an edge, so the view never leaves the sim frame.
--camera static skips the pass.
2026-11-10 00:07:42 +01:00
nvrl a6f47d1e53 Let the director frame tunnel
The vanishing point moves to the shot's framing offset (feedback zooms out
from the moved point), the shot's roll and gaze add to the tunnel's own
bank, and distance becomes the lens since the camera rides the axis.
2026-11-09 23:49:36 +01:00
nvrl 095f232436 Let the director frame sigil
A framing row (roll + offset) joins the UBO header, so the points move to
PTS_OFF 64. The director's orbit adds to the figure's own tumble; distance
and zoom scale its dolly and lens.
2026-11-09 23:43:32 +01:00
nvrl 96466174ae Let the director frame ferro
The kick crowns and the spike sharpening now aim at the director's camera
(last frame's view, so update stays free of render state). The ophanim
field is renamed to match.
2026-11-09 23:30:16 +01:00
nvrl 56f3084c11 Add a director camera that cuts between shots, starting with ophanim
viz/director.rs picks a shot (hero, wide, close-up, low, high, profile,
Dutch tilt, orbit) and cuts on every phrase (4/8/16 bars by section) and on
section changes; drops cut hard, quiet sections glide, builds push in, kicks
in a drop shake the framing. Each mode maps the shot through its own Lens.
ophanim uses it via a new UBO row (roll + framing offset). --camera static
keeps the fixed front camera.
2026-11-09 23:21:06 +01:00
nvrl d0cb2d50ec Draw ophanim's wings as layered feather wings
The six serrated blades fanned from the centre read as a cannabis leaf.
Each wing now has a shoulder off to the side, an arm, a fan of round-tipped
primaries and a row of coverts, drawn in occlusion order.
2026-11-09 23:04:56 +01:00
nvrl 1761d081e7 Cap the live frame rate (nannou's Rate loop mode is a no-op)
LoopMode::Rate in nannou 0.19 behaves like RefreshSync, and live presents
with Mailbox, so nothing held the loop back: a fast GPU ran the live window
at hundreds of fps (here a small window ran ~390 fps against a 60 target).
The look is tuned per frame (feedback decay, onset flags read once per
analysis hop, grain/strobe cadence), so trails smeared and triggers fired
several times over.

update now sleeps each live frame to its target_fps slot; a late frame
starts at once and the schedule restarts instead of bursting. Render stays
uncapped.
2026-11-09 21:38:26 +01:00
nvrl cfb3111f93 Make the preview frame match the render frame
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.
2026-11-09 20:26:45 +01:00
nvrl e48b3d45fa Add a headless --preview mode to sigil
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.
2026-11-09 19:47:30 +01:00
nvrl df8e0e6c96 rustfmt the colour and bloom flags 2026-11-09 16:03:11 +01:00
nvrl c2efacd015 Add custom colour and bloom flags to sigil
--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.
2026-11-09 16:02:18 +01:00
nvrl bfe833dca9 Rebuild field as a smoke simulation
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.
2026-11-09 14:53:43 +01:00
nvrl e4ea12d858 Rebuild tunnel as a beat-locked light tunnel
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.
2026-11-09 14:13:02 +01:00
nvrl ea9ecd3973 Add Riddim, Tearout and Melodic Dubstep looks and a Toxic palette
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.
2026-11-09 02:37:56 +01:00
nvrl b409a20346 Let the low gain swell the ferro drop
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.
2026-11-09 02:36:41 +01:00
nvrl 70fc95e4f9 Add the ferro visualiser for dubstep and riddim
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.
2026-11-09 02:34:29 +01:00
nvrl 4fbafd7b99 Validate the mode shaders with naga in cargo test
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.
2026-11-09 02:34:15 +01:00
nvrl a8f767cf87 Expose the bass features as modulation sources, add a Riddim preset
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.
2026-11-09 02:21:46 +01:00
nvrl 4f98e2dc05 Track bass-music features in the analyser
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.
2026-11-09 02:20:12 +01:00
nvrl 1d25fcc21f Add the ophanim visualiser
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.
2026-11-09 01:14:41 +01:00
nvrl 8e02a75937 Silence ffmpeg's banner and stats during renders
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.
2026-11-09 00:00:09 +01:00
nvrl 2382261ad6 Add genre looks (--look)
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.
2026-11-08 23:21:19 +01:00
nvrl 1f1d303d7e Keep sigil's phosphor trail from washing out
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).
2026-11-08 23:21:19 +01:00
nvrl 6f0a4437b9 Fix image-graph crash on first build
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.
2026-11-08 22:48:25 +01:00
nvrl 850c4417b2 Add colour palettes (--palette)
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.
2026-11-08 22:38:37 +01:00
nvrl 78657e8d31 Support 9:16 and 4:3 output
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.
2026-11-08 22:17:46 +01:00
nvrl e33d3ae38b Fix transparent output for video editors
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.
2026-11-08 21:50:07 +01:00