6 Commits
Author SHA1 Message Date
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 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 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 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