Skip to content

Add expanded Utility, Stereo Widener and Tuner windows - #96

Merged
chrislaupama merged 4 commits into
mainfrom
device-windows-10
Nov 16, 2026
Merged

chrislaupama merged 4 commits into
mainfrom
device-windows-10

Conversation

@chrislaupama

Copy link
Copy Markdown
Collaborator

What changes

  • Utility opens a 1200 pt window with no display: three cards, each with its controls centred (Channel Mode, Phase L, Phase R; Width, Mono, Bass Mono, Frequency, Listen; Gain, Balance, Mute, DC Filter). Frequency and Listen are inert until Bass Mono is on. The In / Out meters run down the face.
  • Stereo Widener draws the stereo field (effective width over 20 Hz..2 kHz on a 0..400 % ladder, lit against 100 %, captioned with the width at the top of the axis) above a correlation lane that plots the input and output stereo correlation of the last six seconds (+1 in phase, 0 uncorrelated, −1 cancels in mono). A vertical drag on the field sets Width. One card: Width, Low Cut | Mid Gain, Side Gain | Mix. Its meters run past the card, as do the Bit Crusher's.
  • Tuner draws the card's tuner at twice its scale with the bar across the middle of the display, one In meter, and a short card: Tuning, Reference | Mute Output.
  • Engine: se_builtin_correlation / Engine::builtin_correlation. While a window meters a built-in device, the audio thread sums L·R, L² and R² of the input and output of each block (no allocation); each poll takes them as a correlation per side (2 where a side was silent). Engine test builtin_metering_reports_stereo_correlation.
  • A window kit can now run its meter strip past the display (meters_h), and a latch pill with a fixed label (Item::Latch).
  • Tests: utility_window_shows_three_cards_and_every_control, widener_window_draws_the_field_and_the_correlation_lane, tuner_window_shows_the_bar_and_one_meter, correlation_history_keeps_the_lane_span_and_breaks_at_silence; all three added to the window bench.
  • README, docs/devices.md and CHANGELOG updated.

Screenshots

Before After

Benchmark

bench_dynamics_windows (release, Linux cloud container), per build:

Device Card Window
Utility 3.1 µs 6.1 µs
Stereo Widener 77.0 µs 70.5 µs
Tuner 16.7 µs 14.5 µs

The correlation sums add three multiply-adds per sample per side, only while a window is open on the device.


Generated by Claude Code

@chrislaupama
chrislaupama marked this pull request as ready for review November 16, 2026 00:36
@chrislaupama
chrislaupama merged commit b40383c into main Nov 16, 2026
15 checks passed
@chrislaupama
chrislaupama deleted the device-windows-10 branch November 16, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant