Skip to content

Add expanded windows for Character Compressor and Mastering Limiter - #91

Merged
chrislaupama merged 4 commits into
mainfrom
device-windows-5
Nov 15, 2026
Merged

chrislaupama merged 4 commits into
mainfrom
device-windows-5

Conversation

@chrislaupama

Copy link
Copy Markdown
Collaborator

What

Character Compressor and Mastering Limiter now open an expanded window, built on the level-history display from #89.

Character Compressor

  • Header: the six model pills, then 1s / 4s / 10s.
  • Display: gain-reduction lane over a 0 to −60 dBFS level plot, with the dashed threshold you can drag.
  • Main card: follows the model. Clean has Knee / Attack / Release. Vari-Mu, Bus VCA and FET have Attack / Release plus Drive and Oversampling. Opto has Comp / Limit pills for its ratio. Opto and RMS VCA drop the time knobs. The transfer square draws the model's own computed curve.
  • Rack card: Section pills switch between three sections:
    • Detector: Adapt, Hold, Range, Lookahead, Stereo Link, M/S Mode.
    • Sidechain: Source, HPF and HPF Freq, Bell Freq / Gain / Q, Listen.
    • Level: Level, Amount, Response, Tilt, then the band pills 1 to 4 with Band On, Freq, Q and Weight.
  • Value text: Hold reads "0.00 ms", Range "24.0 dB" and Lookahead "0.0 ms".

Mastering Limiter

  • Header: the style pills, then 1s / 4s / 10s.
  • Loudness lane: sits above the reduction lane. It shows the output's short-term level (mean power over the last 3 s, unweighted) against a dashed target, with the current level and the window's true-peak maximum in its caption.
  • Target and Reset: the Target picker chooses Streaming −14, Broadcast −23 or Hot −9 LUFS and recentres the lane. Loudness Reset starts the measurement again.
  • Lines: the ceiling is a solid line and the threshold a dashed one, each with its own grip you can drag.
  • Main card: Threshold, Ceiling, Release, Auto, the transfer square, Unity, Delta, Target and Loudness Reset.
  • Rack card: Lookahead, Attack, Transient Link, Release Link, Mid-Side, Oversampling, True Peak, Dither and Shape.
  • Value text: the ceiling reads in dBTP while True Peak is on, and Lookahead shows two decimals.

Tests

  • Every model and section of Character Compressor places each control once inside the face, at 640 pt high.
  • Both windows show their line drags and grips.
  • Mastering Limiter's target moves the ladder, four seconds at −14 dB out read as "−14.0 LUFS", and Reset clears the reading.
  • A core test covers the dBTP text.

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 500 times with a full 10.5 s history (630 samples) and averages the time (4-core Xeon @ 2.1 GHz, Linux).

Device Card Window
Character Compressor 62 µs 602 µs
Mastering Limiter 50 µs 782 µs

The loudness lane uses prefix sums, so the short-term level for every drawn column costs one pass over the history plus a binary search per column. Every build stays under 1 ms. The audio path is unchanged.

Docs

  • README.md (devices section)
  • docs/devices.md (Character Compressor sections, loudness lane, MENU_TARGET, ACT_LOUD_RESET) and CHANGELOG.md

Generated by Claude Code

@chrislaupama
chrislaupama marked this pull request as ready for review November 15, 2026 20:04
@chrislaupama
chrislaupama merged commit c597210 into main Nov 15, 2026
15 checks passed
@chrislaupama
chrislaupama deleted the device-windows-5 branch November 15, 2026 20:04
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