Product
Zero-latency convolution reverb and parametric room synthesis
How Infinite's Convolution Reverb pairs zero-latency non-uniform FFT partitioning with Allen-Berkley room synthesis, pink-noise normalisation, and click-free crossfades.

on this page
Convolution reverb is famous for realistic acoustic spaces and equally famous for two real-time headaches: uniform small-block FFT partitioning burns too much CPU on long tails, while large-block FFT partitioning introduces unacceptable latency and callback spikes. At the same time, loading static WAV impulse responses locks sound designers into fixed rooms where changing size or wall absorption means hunting for another file.
In Infinite, the Convolution Reverb node (ConvolutionKernel) solves both problems in a zero-latency, non-uniformly partitioned engine that can either load an audio file or synthesise a stereo room impulse response on a background thread. While the audio thread only convolves and crossfades, a worker thread builds the acoustic space from six physical parameters: size, shape, material, distance, decay, and spread.

Non-uniformly partitioned FFT convolution
ConvolutionKernel follows the Gardner (1995) and Wefers (2015) non-uniform partitioned convolution layout. Instead of running one FFT size across the entire impulse response, it splits the impulse response (IrSet) into a direct time-domain head and three frequency-domain delay line (FDL) tiers with growing block sizes (kBlockLog2 = { 6, 10, 12 }):
- Direct FIR head (
0..63samples): The firstkHead = 64taps run sample-by-sample directly against a circular stereo history buffer (mHist). Because the head produces output on sample zero, the node reports zero latency and adds no delay to Infinite's lock-free PDC graph. - Tier 0 (
B = 64, starting at sample64): Covers early reflections from sample64to1023in 15 partitions, running a 128-point real FFT (2 * B) whenever 64 input samples arrive. - Tier 1 (
B = 1024, starting at sample1024): Covers mid-tail energy from sample1024to8191in 7 partitions using a 2048-point real FFT. - Tier 2 (
B = 4096, starting at sample8192): Covers the remaining tail up to10.0seconds (kMaxSeconds = 10.0f, capped atkMaxSamples = 960000at96 kHz) using an 8192-point real FFT.
Notice the starting offset of Tier 2: kTierStart[2] = 8192, which is 2B rather than B. If the largest tier began at B = 4096, its FFT pass would have to finish immediately at the end of a 4096-sample window, creating a heavy CPU spike on that single audio callback. Starting Tier 2 at 2B gives the engine an entire 4096-sample window of slack. ConvolutionKernel::BigTierTick splits the large tier's forward FFT, partition multiply-accumulate steps, and inverse FFT across kBigTicks = 56 Tier-0 blocks (out of the 64 small blocks in one big block), leaving an 8-block margin and keeping every audio callback's CPU cost flat.
Parametric room synthesis on a background thread
When no external impulse response file is loaded, ConvolutionKernel::DesignImpulse synthesises a physical shoebox room off the audio thread:
- Room geometry and Eyring absorption:
size(0..1) maps the longest side exponentially from3 mto60 m(3.0f * powf(20.0f, size)), whileshapeselects aspect ratios forroom(0.72, 0.45),hall(0.55, 0.38),chamber(0.90, 0.80), ortunnel(0.16, 0.13). Wall absorption is solved directly from the requesteddecay(RT60) using Eyring's formula (0.161 V / (-S ln(1 - a))), ensuring early reflections and the late tail decay at the exact same rate. - Image-source early reflections: Direct sound lands at
t = 0, followed by discrete 3D mirror-image reflections up to order+-12along each axis (Allen and Berkley, 1979). Each reflection is placed with fractional-sample linear interpolation, attenuated bybeta^order / dist, and panned by its lateral arrival direction scaled byspread. - Polack mixing time and Moorer late field: Reflections transition smoothly into uncorrelated Gaussian noise at the Polack mixing time (
0.002 * sqrt(V), clamped between25 msand160 ms). Following Moorer (1979), the noise standard deviation matches the theoretical reflection energy rate (sqrt(4 * pi * c / V / sr)), blended between mono and independent stereo viaspread. - Seven-band material damping and air absorption: Seven complementary bands (
125 Hzto12 kHz) apply per-band decay ratios interpolated betweensoft(curtains, carpet) andhard(stone, tile) curves, combined with Kuttruff air attenuation (5.5e-4 * (f / 1 kHz)^1.7per metre), followed by a30 Hzhigh-pass filter to remove DC drift from positive image pulses.
To avoid choking the worker thread while a user drags a knob, PushParams throttles new build jobs to at most one every 60 ms.
Pink-noise normalisation and click-free IR swaps
Raw impulse responses vary wildly in perceived loudness depending on room volume and decay time. Normalising by white noise over-attenuates dark rooms because real musical signals carry more energy in low octaves. ConvolutionKernel::BuildSet therefore measures each channel's energy through an 11-section weighting filter spaced one octave apart from 20 Hz (-3 dB per octave, matching pink noise) and normalises the IrSet against a unit impulse through the same filter. It also folds the FFT scaling (1 / (4 * 2B)) directly into the stored partition spectra so the audio thread performs multiply-adds only.
Swapping an impulse response mid-playback without clicks requires care across multiple block sizes:
- The main thread hands the finished
IrSetthrough a single atomic slot (mPending) and frees old sets only after the audio thread returns them viamRetired. - On the audio thread,
mHeadFadelinearly crossfades the 64-tap direct head over 64 samples. - Each FFT tier (
0,1, and2) waits until its current block finishes, computes one overlap-save block against both the oldIrSetandmNext, and ramps linearly across allBsamples before retiring the old set.
Choosing between Convolution Reverb and algorithmic Reverb
On Infinite's node canvas, Convolution Reverb complements the 16-line Hadamard FDN Reverb: use Reverb when you want continuous real-time modulation of size and pitch-slewed feedback tails, and use Convolution Reverb when you want physical early reflections, custom WAV/AIFF impulse responses, or realistic acoustic spaces after Analog, Sampler, or Piano. You can explore ready-made reverb and synth patches in the Infinite library or download Infinite to inspect the node graph directly.
There are honest limits to keep in mind. Infinite is a young, MIT-licensed open-source project: Convolution Reverb is stereo (2 channels), impulse responses are capped at 10.0 seconds (960,000 samples at 96 kHz), knob-driven room rebuilds are throttled to 60 ms intervals (and run inline rather than on a worker thread in the web build), desktop plugin hosting supports VST3 and AU without AAX, and live hardware audio inputs are refused in headless mode.