23 Commits
Author SHA1 Message Date
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 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 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 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 ef43574ca7 Keep the palette's far hue when only one sweep colour is picked
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).
2026-11-09 19:19:31 +01:00
nvrl df8e0e6c96 rustfmt the colour and bloom flags 2026-11-09 16:03:11 +01:00
nvrl 466794268f Add custom colours to the shared palette model
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.
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 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 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 099bc0ce1e Add an Ophanim look
Angelcore on the ophanim mode: seraph palette, long soft trails, no grain,
glitch, scanlines or strobe, and a light matte for transparent output.
2026-11-09 01:14:41 +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 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 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 105aa41fd6 Add a TOP-style image graph to the modulation model
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.
2026-09-27 14:09:55 +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 b0c06421ee init 2026-05-29 00:57:08 +02:00