Skip to content

Add expanded windows for Compressor, Limiter, Gate and Glue Compressor - #89

Merged
chrislaupama merged 1 commit into
mainfrom
device-windows-4
Nov 15, 2026
Merged

chrislaupama merged 1 commit into
mainfrom
device-windows-4

Conversation

@chrislaupama

Copy link
Copy Markdown
Collaborator

What

Compressor, Limiter, Gate and Glue Compressor now open an expanded window from the window button instead of the card in a window.

  • Display: a scrolling level history (device_window_dynamics.rs). Each meter poll appends the device's input, output and gain reduction to a ring of the last 10.5 s. The display draws a gain-reduction lane (0 to −18 dB) over a dBFS level plot, one pixel per dB in both, with the time axis, a legend and the live readout ("Gain Reduction 0.0 dB Peak 0.0").
  • Threshold: the threshold (Limiter: ceiling) is a dashed line with a grip pill; drag it up or down to set it.
  • Header: 1s / 4s / 10s pills pick how much history is shown; Compressor also has Hold view (freezes the history) and its Circuit pills.
  • Transfer square: the first card carries the device's static curve over −48..0 dB with the knee and the live operating point.
  • Controls: every control laid out in cards by the gutter rule; Glue Compressor gets a second row (Sidechain, SC HPF, Range, Makeup, Color, Mix, Output) and its Ratio / Attack / Release as pills.
  • Tests: each window shows the threshold drag, the transfer square, every control once inside the face, and span pills that switch; the history keeps ten seconds and rests in silence; a full history draws once per series.

Screenshots

Device only, cropped to the window. Before: the card in a window. After: the expanded window.

Before After

Benchmarks

cargo test -p dstudio-app --release bench_dynamics_windows -- --ignored --nocapture builds the card and the whole window (with a full 10.5 s history, 630 samples) 500 times and averages (4-core Xeon @ 2.1 GHz, Linux).

Device Card Window
Compressor 40 µs 624 µs
Limiter 39 µs 469 µs
Gate 48 µs 498 µs
Glue Compressor 65 µs 496 µs

Every build stays under 1 ms, and a window only rebuilds while it is open and its history moves (it rests once the input has been silent for the whole span). Recording the history reads the readouts the meters already poll; the audio path is unchanged.

Docs

  • README.md (devices section lists the new windows)
  • docs/devices.md (dynamics windows) and CHANGELOG.md updated

Generated by Claude Code

@chrislaupama
chrislaupama marked this pull request as ready for review November 15, 2026 19:29
@chrislaupama
chrislaupama merged commit 88cd604 into main Nov 15, 2026
13 checks passed
@chrislaupama
chrislaupama deleted the device-windows-4 branch November 15, 2026 19:29
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