Measuring Phase with a Dual-Channel FFT

Definition

How to directly measure a single signal’s phase (not just infer delay from a summed response) using a dual-channel FFT analyzer, a defined origin, and a loopback wiring setup.

Key points

  • Phase requires an origin. Measuring phase means measuring a signal’s position relative to some baseline zero — there’s no such thing as measuring phase without one. You can use the signal’s own start time as the origin, or designate another speaker as the reference to get phase relative to that speaker.
  • Why a summed response isn’t enough: looking only at the summed frequency response of two signals (the technique covered in delay-distance-and-comb-filtering) shows you the RESULT of two out-of-phase signals combining — but you can’t tell which channel (or whether both) is actually phase-shifted from the sum alone.
  • Dual-channel FFT vs. single-channel RTA: an ordinary RTA measures frequency response only. A dual-channel FFT analyzer (e.g. REW, free) measures both time AND frequency directly, via the impulse response — which is what’s needed to view a direct phase measurement of one signal against another. This works because the impulse response contains time, frequency, AND level together — one measurement yields both frequency response and phase response, related by an FFT/IFFT transform pair you never have to compute by hand.
  • Hardware requirement: a soundcard with 2 inputs and 2 outputs (widely available recording-equipment gear; ART USB Dual Pre recommended as an inexpensive, durable option).
  • Loopback wiring: one channel’s output feeds directly back into its own input — this loopback signal becomes the reference/origin. The other channel’s output drives the actual system under test (amp → speaker), with its input coming from a measurement microphone (acoustic test) or the system’s own electrical output (electrical test).
  • Worked distance/frequency example: a 27” (2ms) path difference shifts phase by only 45° at 62Hz but a full 360° at 500Hz — the same physical delay, wildly different phase angle, because delay’s effect on phase is frequency-dependent (see next point).
  • Wrapped vs. unwrapped graphs, mechanically: a wrapped graph resets to 0° every time phase crosses a multiple of 360°, with a dashed vertical line marking “this continues past here” rather than an actual restart. To get back to the true (unwrapped) value, add 360° every zero-crossing after a dashed line. At high frequencies, a fixed time delay becomes many multiples of a wavelength — e.g. the same 2ms delay is 14,400° of phase shift at 20kHz (2ms ÷ a 0.05ms wavelength × 360°) — which is exactly why the wrapped display exists: an unwrapped graph would be unreadable at high frequencies.
  • What a “wrap” precisely is, and how to visually confirm one is harmless (new detail): a wrap is purely a DISPLAY/PLOTTING artifact — the true, continuous phase exceeds the display’s bounded range (e.g. -180° to +180°) and the trace re-enters from the other side, properly indicated by a dotted line showing the smooth continuation. On a LINEAR (not logarithmic) frequency axis, pure delay produces perfectly STRAIGHT diagonal phase lines, because delay’s phase contribution increases linearly with frequency — a genuine wrap is simply that straight line continuing across the plot boundary. By contrast, a real phase REVERSAL caused by an actual acoustic reflection/comb-filter interaction produces a CURVED (non-linear) trace, since the physical cause (reflected-path interference) does not behave like a constant time delay across frequency. This distinction is much harder to read on the more commonly used logarithmic axis — switching REW to a linear frequency axis for phase inspection makes delay-caused wraps unambiguous.
  • Critical limitation — “peak picking” fails for low-frequency drivers: finding a driver’s exact arrival time in the impulse response by locating its peak works well ONLY when the signal has plenty of high-frequency content — a sharp, narrow peak that’s easy to timestamp and convert to distance (distance = (13,584”/sec × ms)/1000). Tweeters and midranges are fine this way. Midbass and subwoofer content is a different story: removing high-frequency content removes most of the measurement’s usable data, making the true rise nearly invisible even after normalizing the display to full scale. Peak-picking essentially fails for these drivers — a tape measure is more reliable than impulse-response peak-picking for sub/midbass distance, but reading the phase graph directly (from the same underlying measurement) is better still, since it doesn’t require peak-picking at all.
  • A dramatic, concrete illustration of this limitation — a real-world Fiat measurement case study (aw-on-delay-and-impulses-2015): the tweeter and midrange channels show a clean, consistent ~4ms system-wide delay (with a small extra amount on the mid from its own low-pass filter), easily read off their sharp impulse peaks. The subwoofer channel, however, INITIALLY appears — via naive peak-picking — to carry a startling ~40ms of delay. This is purely a measurement artifact of the sub channel’s lack of high-frequency content flattening the impulse’s rise slope (the same “20Hz vs. 20kHz oscilloscope trace” analogy: a low-frequency trace reaches its peak far more gradually). The lesson: you must understand HOW a tool identifies delay before trusting an automated “delay estimate” output, especially for band-limited channels.
  • A related, previously-undocumented EQ capability: in a summing processor with EQ, you CAN equalize AT a phase error, because you can EQ the SUM directly rather than EQing the inputs before they’re summed — a distinct technique from correcting phase via delay or crossover choice on individual channels, relevant when working with factory-signal reconstruction/summing DSPs.
  • Practical algorithm-design notes for automated delay estimation (from the same Fiat case study), roughly in increasing order of rigor: (1) ignore the band-limited-channel problem entirely; (2) compare left and right channels directly to determine L/R delay only, leaving same-channel (driver-to-driver) delay alone; (3) pick the peak and back up to the nearest zero crossing — still not a good estimate for a sub without further work; (4) the recommended manual method — estimate the crossover frequency, compute the group delay implied by that crossover, subtract it from the raw measurement, then back up to a zero crossing — reported to “work pretty well” even for band-limited channels.
  • Practical frequency range note: phase measurements matter most at low frequencies. Above roughly 1kHz, wavelengths are short enough that this matters less in practice — for a mid-to-tweeter transition, simple impulse-response peak-picking is usually good enough to set delay, since both typically have ample high-frequency content.
  • Historical note: phase measurement itself isn’t new. An MLSSA ISA measurement card in the mid-1990s could measure/display phase directly, plus waterfall plots and impulse responses — but cost roughly 10,000: today, freeware plus a ~100 sound card achieve the same core capability.
  • New time-alignment technique — linear-axis slope matching (REW): building on the wrap/reversal distinction above, a faster, more visual alternative to impulse-peak-picking: (1) display the high-pass and low-pass driver’s phase traces together on a LINEAR frequency axis; (2) add delay to one channel and watch its phase slope change; (3) adjust delay until the two slopes visually match/align through the crossover region (matching slope means matching arrival time as a function of frequency); (4) verify by checking that the actual summed frequency response through the crossover region is smooth and non-dipped. This reinforces, rather than replaces, the group-delay-based alignment approach documented in group-delay-based-time-alignment-methodology — it’s a faster, more visual way of achieving the same underlying goal.

How it connects

  • Grounded at the hardware level by measurement-microphone-fundamentals: that page explains exactly why USB mics/interfaces can’t be trusted for phase measurement (no shared timing clock between devices) — the underlying reason this page’s loopback-wiring requirement exists in the first place.
  • Extended into a full, rigorous demonstration by group-delay-based-time-alignment-methodology: that page proves (via a known-correct crossover whose impulse peaks still don’t align) that peak-picking fails as a general time-alignment method, not just for band-limited low-frequency drivers as established here — and supplies the correct alternative (group-delay/phase curve comparison), now also including the linear-axis slope-matching variant introduced above.
  • Independently corroborated from a measurement-methodology angle by spatial-averaging-and-measurement-methods: that page shows that averaging multiple microphone positions (or a moving mic) — a technique used to get a frequency response that correlates with what’s actually heard — CANNOT be used for phase under any averaging scheme; phase must always come from one single, consistent microphone position. Both pages converge on the same underlying constraint (phase needs one fixed origin) from different starting points.
  • Directly extends delay-distance-and-comb-filtering: that page covers inferring delay from a summed response (practical when no clean per-channel measurement is possible, e.g. factory head units with no aux input); this page covers the more rigorous, per-channel alternative when you can get a direct measurement.
  • Feeds phase-summation-fundamentals’s wrapped/unwrapped distinction with the concrete mechanical explanation of why wrapping happens and how to reverse it, now sharpened by the wrap-vs.-reversal visual distinction above.
  • The peak-picking limitation directly explains why sub-midbass-phase-alignment’s workflow relies on the phase graph, not the impulse graph, for sub/midbass alignment — this page supplies the underlying reason that choice is correct.
  • The Fiat 40ms-delay case study is also directly relevant to group-delay-and-crossover-relocation-myth: that page uses the same measurement to show exactly how a peak-picking artifact could be mistaken for a real “crossover moved the sub back” problem and lead to an incorrect delay-based “fix” — the two pages describe the same underlying case study from two different angles (measurement-technique limitation vs. crossover-design consequence).

Contradictions / open questions

  • The source’s original plan to cover specific REW tools for confirming a phase shift is delay-caused (vs. other causes) was deferred in favor of covering other phase-shift causes first — not yet delivered as its own topic. Partially addressed by the wrap-vs.-reversal linear-axis visual distinction now documented above, though a dedicated tool-by-tool walkthrough is still not yet available.

Sources