Access Official Technical PDF

Share Summary:LinkedInEmail

Wide dynamic range compression (WDRC) is a signal-processing method for mapping a broad range of input levels to a narrower output range. In onsemi’s Ezairo Preconfigured Suite, a configurable, multi-channel WDRC applies different gain behavior across frequency bands. Understanding its thresholds, level detectors and timing controls helps engineers interpret how the algorithm responds to changing signal levels—and what its response graphs can and cannot show.

How wide dynamic range compression maps signal levels

A WDRC uses an input/output (I/O) function to determine the output level associated with each input level. In general, it applies more gain to softer signals and less gain to louder ones. The aim is to make lower-level signals more audible without allowing higher-level signals to become excessively loud.

The I/O function is defined by thresholds, or kneepoints, that divide the signal range into regions. In the Ezairo implementation, a channel can include:

  • Expansion: Below the expansion threshold, gain decreases as the input level falls. This can reduce the amplification of very low-level noise.
  • Lower-level linear region: Between the expansion and lower thresholds, the configured low-level gain applies.
  • Compression: Between the lower and upper thresholds, output level rises less than input level.
  • Higher-level linear region: Above the upper threshold, the high-level gain applies up to the output limit.
  • Output limiting: The Output-Referred Automatic Gain Control (AGCo) limits the maximum output level.

The expansion, lower and upper thresholds are input-referred acoustic levels, specified in dB SPL. The output limit is specified relative to the device’s maximum output in dBFS. Its corresponding acoustic limit depends on the receiver’s electroacoustic properties, so the configured model affects the predicted acoustic response.

Why use multiple compression channels?

A multi-channel compressor divides frequency bands into channels using crossover frequencies. Each channel can have its own I/O function and dynamics, allowing the processing to differ across parts of the spectrum. For example, a configuration can apply compression in higher-frequency bands while leaving lower-frequency bands without the same adjustment.

In the Ezairo software, channel 1 begins at 0 Hz and extends to the first crossover. Subsequent channels cover the ranges between adjacent crossovers, while the final channel extends from the last crossover to half the sampling rate. Crossover frequencies must be unique and ordered from low to high.

Each channel’s low-level and high-level gains contribute to the overall system gain alongside transducers, preamplifiers and other algorithms. Gains may be positive or negative. The expansion ratio sets how much output falls for each decibel decrease in input below the expansion threshold. For example, a 1:2 expansion ratio means that an input 5 dB below the threshold is attenuated by 10 dB relative to a signal at the threshold.

How level detectors and timing shape the response

The compressor estimates signal level with detectors that smooth changes using configurable attack and release times. Smoothing controls how quickly gain responds and helps prevent it from changing too rapidly. The implementation provides separate AGCo, compressor and expansion detectors, each with its own timing settings. At any moment, one detector supplies the active level estimate used in the channel’s gain calculations.

Detector selection follows operating conditions. AGCo takes priority when its detector level exceeds the output limit. Otherwise, the compressor detector takes priority when the signal exceeds the expansion threshold. The expansion detector is used when neither of those conditions applies. This ordering means that expansion is exited according to the compressor detector’s attack time when a signal rises above the expansion threshold.

For compression and AGCo, attack governs how quickly the algorithm responds to rising levels and reduces gain; release governs how quickly it responds to falling levels and restores gain. Expansion works in the opposite direction: expansion release controls how quickly gain is reduced as the signal falls, while expansion attack controls how quickly gain is restored as it rises.

Timing choices involve tradeoffs. A faster AGCo attack applies limiting more quickly, while a slower attack produces softer limiting but can increase the risk of clipping or saturation during transients. Faster expansion release can suppress a changing noise floor sooner, but may make gain modulation—or “breathing”—more noticeable. Slower release can make transitions less abrupt.

Use response graphs to evaluate configuration

Ezairo Sound Designer provides graphs that help users inspect the predicted acoustic response. The Frequency Gain view plots gain against frequency for selected input levels; the Input/Output view maps input level to output level for selected frequencies. Alternative views show output level by frequency or gain by input level.

The software predicts steady-state behavior, using pure tones by default, and can also display a composite flat input signal. These predictions include modeled acoustic and electrical effects. Accurate modeling depends on entering and selecting the correct microphone and receiver sensitivities. The graphs do not reflect changes to attack and release settings because those settings affect dynamic behavior over time, not the steady-state response.

Configuration rules also help prevent some unsuitable I/O curves: the lower threshold cannot exceed the upper threshold, the expansion threshold cannot exceed the lower threshold, and the low-level threshold-plus-gain combination cannot exceed the corresponding high-level combination. These checks constrain the configured response but do not replace application-specific validation.

What the compression example illustrates

In the application note’s example, the lower threshold is 50 dB SPL with 30 dB of low-level gain, while the upper threshold is 90 dB SPL with 0 dB of high-level gain. At steady state, inputs from 50 to 90 dB SPL map to outputs from 80 to 90 dB SPL—a 4:1 compression ratio.

When a 1 kHz tone drops abruptly from 90 to 50 dB SPL, the output does not immediately reach its steady-state level. With a compressor release setting of 128 ms, gain returns progressively as the detector responds to the lower input. The example demonstrates why an I/O curve alone is not enough to describe behavior: timing determines how the system moves between operating points.

Practical implications

WDRC configuration requires considering both the steady-state mapping and the time-dependent response. Channels and kneepoints define where gain changes occur; detector priorities and attack and release settings determine how those changes unfold. Response graphs are useful for evaluating acoustic predictions, but they do not represent dynamic timing and rely on correctly modeled transducers. For engineers working with the Ezairo implementation, these distinctions provide a practical basis for reviewing settings and validating behavior in the intended application.

Access Official Technical PDF

About The Author