--> Lesson 3 — Phase, Minimum Phase and Time Alignment | REW Pro Reference

Module 03 · Complex Transfer Functions & Coherent Summation

Lesson 3 — Phase, Minimum Phase and Time Alignment

Magnitude is only half of the acoustic transfer function. Without valid phase data, locked timing references, clock-skew compensation, and minimum/excess-phase separation, you cannot distinguish EQ-able room modes from un-invertible cancellations—nor can you integrate multi-way speakers and subwoofers with predictable complex summation.

SPL & Phase Group Delay / EGD Timing Ref & Clock Adj Alignment Tool

01 · Operational Rationale

What This Is For

Two acoustic systems can exhibit identical steady-state magnitude curves at the listening position while sounding and summing completely differently. The complete linear time-invariant (LTI) description of a source-to-microphone path is the complex transfer function H(f) = |H(f)| · ejφ(f). In professional calibration—whether aligning a studio monitor/subwoofer crossover, phase-matching a multi-subwoofer array, diagnosing comb filtering from console/boundary reflections, or deciding where IIR EQ is physically valid—the phase term φ(f) and its negative frequency derivative, group delay τg(f), govern whether your corrective decisions solve the physics or merely mask one symptom while degrading time-domain clarity and spatial consistency.

Working with phase in REW requires discipline at capture time. Unlike magnitude, phase is hypersensitive to unreferenced buffer latency, asynchronous A/D–D/A clock drift (ubiquitous with USB measurement microphones on macOS), and careless t=0 shifting. A 0.5 ms timing error barely alters a smoothed SPL trace, yet it rotates phase by 180° at 1 kHz and turns an 80 Hz subwoofer alignment measurement into guesswork. Mastering REW's timing reference architecture, minimum-phase decomposition, and complex-vector Alignment Tool converts crossover integration and room diagnostics from trial-and-error knob turning into deterministic engineering.

Engineering Problem Primary REW Tool / View Diagnostic Metric Physical Decision
Can this +9 dB peak or −12 dB dip be fixed with IIR PEQ? SPL & Phase → Generate Minimum Phase; Group Delay Excess Group Delay (EGD) flatness near 0 ms Flat EGD → cut with IIR PEQ. Sharp EGD spike/reversal → non-minimum phase; move source/mic, align, or treat.
Subwoofer & mains show a notch through the 80 Hz crossover All SPL → Alignment Tool (Impulse & Phase modes) Phase-slope match, 1/3-oct IR cross-correlation, Aligned sum Apply delay to earlier source (usually mains) + polarity flip if needed; validate with physical combined sweep.
High-frequency phase wraps erratically with a USB mic on macOS Preferences → Analysis + Measurement Info Clock offset in ppm via dual acoustic timing chirps Enable Adjust clock with acoustic ref; verify consistent ppm across consecutive sweeps.
Need true absolute electro-acoustic latency of a DSP monitor Measure with Loopback timing reference System delay (ms) in Measurement Info & Impulse onset Subtract acoustic time-of-flight (d / c) to isolate internal DSP + converter latency.
Vector averaging multiple measurements collapses high frequencies All SPL → Cross corr align / Time align Inter-trace arrival skew and excess phase dispersion Time-align traces before vector averaging, or use RMS + phase / spatial RMS average for multi-seat work.

02 · Concrete REW Workflow

Steps: Phase-Valid Capture, Decomposition, and Alignment

Follow this sequence end-to-end whenever phase accuracy, group delay interpretation, or multi-source summation is the objective. Shortcuts in Steps 1–4 cannot be repaired in post-processing.

Stage A — Establish a Phase-Valid Timing Reference & Clock Lock

  1. Lock audio I/O sample rate and hardware routing before launching REW. On macOS, open Audio MIDI Setup and lock both input and output devices to the same sample rate (48 kHz or 44.1 kHz for acoustic work) and 24-bit depth. Launch REW, open Preferences → Soundcard, and explicitly select the named input and output devices—never leave either set to Default Device. Verify channel assignments and configure Output Channel Mapping if addressing a multichannel interface or HDMI receiver.
  2. Select the timing reference architecture matched to your hardware topology. Open Measure (⌘M on macOS / CtrlM on Windows) and choose one of two reference modes:
    • Loopback as timing reference (preferred when I/O shares a master clock): Physically patch a spare interface output (Ref output) back into a spare interface input (Ref input) on the same audio interface or word-clock-locked converter. In Preferences → Soundcard, assign the loopback input and output channels. Loopback eliminates all OS buffer, driver, and interface latency jitter, yielding true absolute electro-acoustic system delay.
    • Use acoustic timing reference (required for USB mics, HDMI/AVR paths, or split I/O): Select a dedicated, full-range reference speaker (typically the Left main tweeter—never a subwoofer or band-limited driver) as the Ref output. REW emits a short high-frequency chirp (~5–20 kHz) through that speaker immediately before the measurement sweep and locks t=0 to its acoustic arrival at the microphone. Never change the reference speaker or move the microphone across a set of measurements you plan to align.
  3. Enable clock-drift compensation for asynchronous I/O (USB mics / separate devices). If your input and output run on independent quartz oscillators (e.g., UMIK-1/2 + audio interface or HDMI on macOS), open Preferences → Analysis and check Adjust clock with acoustic ref. When active, REW plays the high-frequency timing chirp both before and after each sweep, measures the exact sample count elapsed between chirps against the nominal sweep length, calculates the fractional clock offset (in ppm), and resamples the capture prior to deconvolution. Keep Number of sweeps = 1—REW disables coherent multi-sweep averaging for USB mics and split-clock devices because inter-sweep phase drift would cancel high frequencies.
  4. Configure sweep bounds to protect the minimum-phase calculation, then verify timing lock. Set Sweep length to 256k (or 512k in noisy rooms for +3 dB S/N per doubling). Set sweep frequency span wider than the band you intend to analyze: for a subwoofer crossing at 80 Hz, sweep at least 15 Hz – 500 Hz (not 20–120 Hz) so the upper roll-off tail is cleanly captured for REW's Hilbert-transform minimum-phase solver. Run a test capture of your reference speaker, then inspect:
    • Captured graph: confirm healthy headroom (6–40 dB green) and zero clipping on both chirp and sweep.
    • Measurement Info (⌘I): verify Timing ref is logged, check System delay (near 0.000 ms for the acoustic ref speaker itself; positive d/c + DSP latency for loopback), and confirm a plausible, repeatable Clock adjustment value (typically within ±10 to ±100 ppm).
macOS Audio I/O & Timing Notes

macOS uses Java audio drivers exclusively (no ASIO or WASAPI exclusive). While Java drivers allow mixing a USB mic input with a separate DAC/HDMI output, those two devices never share a sample clock—making Acoustic timing reference + Adjust clock with acoustic ref mandatory for valid phase work. Remember that REW's internal volume sliders are disabled on macOS; set preamp/output gain in Audio MIDI Setup or your interface mixer, and never load a soundcard calibration file when measuring with a USB microphone. If macOS silently blocks mic capture after an update, quit REW and run tccutil reset Microphone in Terminal before relaunching.

Hardware & Data-Integrity Traps to Avoid

1. Loopback protection: Always verify +48V phantom power is OFF on the loopback input channel and mute hardware direct monitoring on that channel before connecting the cable; phantom voltage can damage line outputs and unmuted monitoring triggers an instant full-scale feedback loop.
2. Do NOT independently shift t=0 on alignment pairs: Running Estimate IR delay → Shift IR individually on Main and Sub traces destroys their shared timing-reference origin. Keep original captures locked to the timing reference; if you want delay-removed phase for single-speaker inspection, operate on a copy or note the exact offset.

Stage B — Capture Sources & Decompose Minimum vs. Excess Phase

  1. Capture each source individually at identical gain, sample rate, and mic position. With the microphone fixed at the listening position and the timing reference untouched, measure each subsystem alone (e.g., L Main (HPF), R Main (HPF), Sub 1 (LPF), plus an initial unaligned baseline of L Main + Sub 1). Use identical sweep level (e.g., -12 dBFS calibrated to ~75 dB SPL) across all captures so relative levels reflect true system balance.
  2. Inspect phase with transport delay removed (single-source analysis). Select a single speaker measurement, open SPL & Phase, and ensure smoothing is set to None or 1/48–1/24 oct (heavy smoothing smears rapid phase transitions). If using a loopback reference, raw phase will wrap densely due to acoustic flight time τ0. Open Controls → Estimate IR delay to read the cross-correlation delay between the measured IR and its minimum-phase equivalent. To inspect phase cleanly without corrupting an alignment source trace, either duplicate the measurement first (All SPL → Actions or save/reload copy) or note that applying Shift IR subtracts a pure constant delay τ0—flattening the linear phase ramp without altering the underlying transfer function's minimum-phase or excess-phase curvature.
  3. Generate Minimum Phase and inspect Excess Phase & Excess Group Delay. In SPL & Phase → Controls (or Group Delay → Controls), click Generate minimum phase. REW computes the causal, invertible minimum-phase transfer function corresponding to the measured magnitude response (taking into account your active IR windows and tail settings). Enable the Minimum phase and Excess phase traces on SPL & Phase, then switch to the Group Delay graph and enable Minimum group delay and Excess group delay. Optionally apply light smoothing (1/12 or 1/6 oct, or Variable smoothing for broad trends) only after inspecting unsmoothed excess group delay spikes so sharp cancellations are not hidden.

Stage C — Align Speakers and Subwoofers in the Alignment Tool

  1. Load the timing-referenced pair into the Alignment Tool. Switch to All SPL, check the unshifted individual traces you wish to integrate (e.g., L Main and Sub 1), and click Controls → Alignment tool. Assign the reference speaker (typically L Main) to trace A and the subwoofer (or secondary driver) to trace B. Place the frequency cursor at the acoustic crossover frequency fc (the frequency where the two SPL traces actually intersect—not merely the nominal number dialed into the AVR or DSP).
  2. Resolve 360° cycle ambiguity first, then refine phase and polarity. Do not blindly click "Align phase at cursor" on an unknown delay offset—phase alignment alone is blind to integer-cycle wraps (±N / fc, e.g., ±12.5 ms at 80 Hz). Execute in this order:
    • Select Impulse alignment mode with the cursor at fc. REW applies a 1/3-octave bandpass filter centered at fc to both IRs and cross-correlates their envelopes and waveforms to locate the true arrival offset without cycle wrap. Evaluate both normal and inverted polarity candidates.
    • Switch to Phase alignment mode and compare Align phase slopes at cursor against Align phase at cursor. Visually verify that the adjusted phase trace of B tracks the slope of trace A through the entire overlap band (roughly 0.5·fc to 2·fc), not merely touching at a single point.
    • Toggle Invert polarity on B and test fine delay (±1–2 ms) while watching the live Aligned sum curve. Adjust Gain on B only if a level mismatch shifts the acoustic crossover point away from target.
  3. Generate the predicted sum, translate delay to hardware, and verify physically. Click Aligned sum in the Alignment Tool to create a new measurement representing the exact complex vector sum A + Badj (and optionally Aligned copy to inspect B's shifted phase/impulse directly). Inspect the generated Aligned sum in SPL & Phase, Group Delay, and Impulse / Step. Next, enter the delay, polarity, and gain into your DSP or AV processor—paying strict attention to sign conventions (if REW calls for a negative delay on the sub, you must add positive delay to the mains!). Finally, run a physical combined sweep (L Main + Sub 1) and overlay it against REW's Aligned sum in All SPL. Close agreement (±0.5–1.0 dB through the crossover) proves your timing chain and DSP implementation are exact.

03 · Graph & Metric Interpretation

Reading the Output

Knowing which buttons to click is trivial; reading the coupled behavior across SPL & Phase, Group Delay, Impulse, and the Alignment Tool is where professional diagnostics live. Every anomaly leaves a correlated signature across magnitude, phase, excess group delay, and time.

3.1 SPL & Phase + Excess Group Delay: Minimum Phase vs. Non-Minimum Phase

On the SPL & Phase graph, wrapped phase cycles between +180° and −180° (vertical jump lines are wrap discontinuities, not physical steps; toggle Unwrap phase to inspect continuous slope). Once bulk transport delay τ0 is removed, compare the measured phase φmeas(f) against REW's computed φmin(f):

Diagnostic Signature: Minimum-Phase Modal Peak vs. Non-Minimum-Phase Cancellation Notch SPL & Phase + Group Delay Overlay
TOP: SPL (dB) & Unwrapped Phase BOTTOM: Group Delay vs. Excess Group Delay (ms) 85 dB 80 dB 75 dB 70 dB 65 dB +20 ms +10 ms 0 ms −10 ms 20 Hz 30 48 Hz 80 100 118 Hz 200 300 Hz 48 Hz Modal Peak (Min-Phase) GD rises, but EGD stays ~0 ms → Cut with PEQ 118 Hz SBIR Notch (Non-Min-Phase) Phase diverges + EGD spikes ±18 ms → Do NOT EQ SPL Min Phase Meas Phase / EGD GD

3.2 Group Delay: Reading Smooth Slopes vs. Constant Offsets

Group delay is defined as τg(f) = −(1 / 2π) · dφ(f)/df. When reading the Group Delay panel in REW, distinguish three completely different physical phenomena:

3.3 Impulse Response, Step Response, and Measurement Info

The Impulse graph (viewed in % FS or dBFS) and Measurement Info panel anchor your time-domain sanity checks:

3.4 Alignment Tool: Phase Matching vs. Phase-Slope Matching (The 1-Cycle Trap)

The single most common professional error in sub/main integration is aligning phase at fc while being 1 full cycle (360°) off. At 80 Hz, one period is T = 1 / 80 = 12.5 ms. If the subwoofer is 12.5 ms late relative to the mains, both drivers have identical phase at 80.0 Hz and produce a tempting +6 dB sum right at the cursor—yet because the extra 12.5 ms adds an extra −360° × 0.0125 s = −4.5°/Hz of phase slope, the sub and main slide 90° out of phase just 20 Hz away (at 60 Hz and 100 Hz) and hit 180° destructive cancellation 40 Hz away (at 40 Hz and 120 Hz), hollowing out the crossover skirts and smearing bass transient impact.

Alignment Tool Diagnostic: True 0-Cycle Alignment vs. 1-Cycle (12.5 ms @ 80 Hz) Wrap Error All SPL · Alignment Tool
A. TRUE 0-CYCLE ALIGNMENT (Matched Phase Slopes) 81 75 69 63 +90° 0° −90° 40 Hz 60 80 Hz (fc) 120 160 Hz +6 dB coherent sum across octave Parallel slopes → Δφ ≈ 0° everywhere B. 1-CYCLE WRAP ERROR (+12.5 ms Late @ 80 Hz) 81 75 69 63 +90° 0° −90° 40 Hz 60 80 Hz (fc) 120 160 Hz