Product
Minimum-phase vs linear-phase oversampling for audio DSP
Comparing Kaiser-windowed FIR and elliptic IIR allpass half-band oversamplers in Infinite: latency, 120 dB stopbands, ADAA saturation, and dry/wet phase alignment.

on this page
Every nonlinear audio processor, from a warm tube saturator to a wavefolder or FM operator, generates harmonics above the Nyquist limit. Without band-limiting, those upper harmonics fold back down into the audible spectrum as harsh, inharmonic aliasing. Oversampling solves this by running the nonlinearity at 2x, 4x, or 8x the base sample rate, then filtering away the out-of-band energy before decimating back down.
The design choice that separates clean, low-latency effects from sluggish or phase-smeared ones is how you build those upsampling and downsampling filters: specifically, choosing between linear-phase and minimum-phase oversampling. In Infinite, the DSP engine maintains two complementary oversamplers side by side: a linear-phase Kaiser-windowed FIR cascade (Oversampler) and a minimum-phase elliptic IIR allpass cascade (MinPhaseOversampler). Understanding why both exist reveals the core trade-offs in real-time anti-aliasing.

Why nonlinear DSP needs multi-stage half-band oversampling
A single 8x brick-wall filter running at the full 8x rate would waste CPU cycles on taps that only need to reject images far above human hearing. Both of Infinite's oversamplers therefore use a multi-stage 2x half-band cascade:
- Stage 1 ($f_s \leftrightarrow 2f_s$) operates at the lowest rate and carries the steepest transition band, keeping everything up to 20 kHz flat while stopping images above $f_s - 20\text{ kHz}$.
- Stage 2 ($2f_s \leftrightarrow 4f_s$) only needs to reject energy above $2f_s - 20\text{ kHz}$, allowing a much wider transition band and far fewer operations.
- Stage 3 ($4f_s \leftrightarrow 8f_s$) only needs to stop energy above $4f_s - 20\text{ kHz}$, making the highest-rate stage the cheapest per sample.
At 48 kHz, only the first stage has a tight boundary; the outer stages clean up high-order harmonics at minimal cost.
Linear-phase FIR cascades: flat phase at 73 samples
Infinite's Oversampler builds each 2x stage from a symmetric Kaiser-windowed half-band sinc (kBeta = 10.0). Because every second coefficient in a half-band FIR kernel is zero, each stage evaluates only half of its filter taps.
With the default first-stage group delay of 64 outer-rate samples, Stage 1 delivers roughly 100 dB of stopband attenuation with a transition band of about 2.2 kHz around $f_s / 2$, staying flat to 20 kHz even at 44.1 kHz. Stages 2 and 3 each need a group delay of only 12 outer-rate samples, which halves at every octave down to the base rate:
$$\text{Latency}_{8\text{x}} = 64 + \frac{12}{2} + \frac{12}{4} = 73\text{ base samples}$$
At 2x, 4x, and 8x, total latency is 64, 70, and 73 base samples (roughly 1.52 ms at 48 kHz). Its phase response is perfectly linear: every frequency experiences the exact same integer delay, so dry/wet mixing only requires a simple integer delay line, and parallel paths stay phase-coherent without dispersion.
For polyphonic synthesizers such as Analog and FM (and Ring Mod), Oversampler also accepts a lighter firstStageGroupDelay = 32 setting where folding into the 20 to 24 kHz band is acceptable. In Analog, VoiceSimd::Oversampler4 packs four polyphonic voices side by side into 4-wide SIMD lanes so all four voices share one filter loop.
Minimum-phase IIR allpass half-band cascades
For live-monitored distortion and nonlinear filter models, 73 samples of latency plus FIR pre-ringing on sharp transients can feel soft or add unnecessary round-trip delay. Infinite's MinPhaseOversampler replaces the symmetric FIR sinc with a polyphase IIR half-band structure based on Valenzuela and Constantinides (1983):
$$H(z) = \frac{A_0(z^2) + z^{-1} A_1(z^2)}{2}$$
Here $A_0$ and $A_1$ are cascades of first-order allpass sections $(a + z^{-1}) / (1 + a z^{-1})$ running at the inner rate. Because the two branches are power-complementary, the passband magnitude is flat to floating-point rounding while the stopband forms an equiripple elliptic response.
In Prepare(), MinPhaseOversampler computes the exact closed-form elliptic coefficients for the active sample rate, targeting 120 dB of stopband rejection (kStopbandDb = 120.0) and a 20 kHz passband (kPassbandHz = 20000.0). At higher project sample rates (such as 88.2 kHz or 96 kHz), the transition bands widen, so the solver automatically selects fewer allpass sections and lowers CPU cost.
The latency drop is dramatic: at 8x and 48 kHz, an Up() plus Down() round trip costs just 5 or 6 base-rate samples (about 0.12 ms), over twelve times faster than the 73-sample FIR cascade. Because the steepest Stage 1 allpass poles sit close to the unit circle, all internal filter states run in double precision to prevent coefficient quantisation noise.
The dry/wet phase-alignment trap
Minimum-phase filtering introduces one subtle catch: its group delay is not flat across the spectrum. While low and mid frequencies pass through in roughly 5 samples, frequencies approaching 20 kHz lag behind by an extra fraction of a millisecond.
If an effect node delays its dry signal by a fixed integer sample count (Latency()) and blends it with the oversampled wet path, the two paths drift out of phase near the top octave, producing a subtle comb-filter notch around 15 to 20 kHz even at moderate mix settings.
Infinite's Saturator, Drive, and Wavetable Shaper avoid this trap by instantiating a second, identical MinPhaseOversampler (mDryOversampler) dedicated to the dry signal. The dry path runs Up() straight into Down() with no waveshaping in between. Both wet and dry signals experience the exact same elliptic allpass phase response at every frequency, so any dry/wet balance sums cleanly without top-end cancellation.
Choosing the right oversampler per node
Infinite pairs each oversampler with the DSP workload that benefits most from its strengths:
- Saturator and Drive combine 8x
MinPhaseOversamplerwith first-order antiderivative anti-aliasing (ADAA) across tube, tape, diode, wavefold, rectify, and bitcrush curves, keeping transient attack crisp and latency at 5 to 6 samples (reported accurately to Infinite's lock-free PDC scheduler). - Wavetable Shaper pairs 8x
MinPhaseOversamplerwith continuous mip-level crossfading so aggressive wavefolding never folds harsh harmonics back down. - Audio Filter runs 2x
MinPhaseOversamplerwhen nonlinear analogue-modelled filter topologies are active. - Analog, FM, Electric Piano, and Ring Mod use linear-phase
Oversamplerwhere waveform symmetry and polyphonic SIMD lane packing matter most. For a deeper look at how Analog pairs oversampling with BLEP oscillators and zero-delay feedback filters, see our post on aliasing-free virtual analog DSP.
Honest limits and trade-offs
Both designs carry real engineering boundaries worth noting plainly:
- High-frequency phase dispersion:
MinPhaseOversamplershifts phase near 20 kHz; it should never be summed against an un-filtered parallel bus without matching the allpass response or using PDC carefully on full-wet chains. - Double-precision state cost:
MinPhaseOversamplerkeepsdoublehistories in Stage 1 to maintain its 120 dB elliptic stopband, making it slightly heavier per sample than a short symmetric FIR loop when vectorising many synth voices at once. - Project scope: Infinite is a young, active project: it does not ship an AAX plugin target, and hardware audio inputs are refused in headless CLI mode.
Try it in Infinite
Download Infinite or explore ready-made patches in the Infinite preset library. Drop a Saturator or Wavetable Shaper after a clean Analog bassline, push the drive into wavefolding, and sweep the mix control to hear 120 dB elliptic anti-aliasing and phase-aligned dry/wet blending at 0.12 ms latency.