27 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 3e5dbfe460 Add sigil-vocals, a vocal isolation program
A small CLI that runs an MDX-Net vocal model (the ONNX files from the
Ultimate Vocal Remover set, e.g. UVR_MDXNET_1_9703 or Kim_Vocal_2) on a
44.1 kHz WAV and writes the vocal stem, so speech to text hears the words
instead of the drop. The mix is cut into overlapping chunks, STFT'd
(periodic Hann, hop 1024, centred) and fed to the model as L/R real and
imaginary planes, as UVR does; known models bring their n_fft, dim_f and
level compensation, others get dim_f from the model's input shape.

ONNX Runtime is loaded at run time (ort's load-dynamic): $ORT_DYLIB_PATH,
else the library next to the program, else the system's. Nothing links,
so the mingw cross-build works and the bundles ship Microsoft's prebuilt
library. Pure-Rust tract was tried first and was about three times slower.
Progress goes to stderr as "progress = N%", the same line whisper-cli
prints. CI runs its tests and cross-builds it for Windows.
2026-11-11 00:00:01 +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 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 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 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 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 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 74bd9c593f Document the in-app preview 2026-11-09 20:26:45 +01:00
nvrl 9d174d01ee Document the studio launcher and the colour flags 2026-11-09 19:30:13 +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 12e0075465 Document the bass-music features, ferro and the new looks 2026-11-09 02:38:50 +01:00
nvrl fc2a93ff5f Document the new modes, looks and palettes
The README lists all four visualisers (field was missing) and the --look
and --palette flags; the launcher README covers the quick-start screen.
2026-11-09 01:14:41 +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
nvrl 715b58ba24 Document the image graph and Trails preset 2026-09-27 14:13:17 +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