GestureSynth.me

Music calculator

First Order All Pass Filter Calculator

Find phase shift and group delay for a first-order analog all-pass section. Set a corner and test frequency while magnitude stays at unity.

first order all pass filter calculator

First Order All Pass Filter Calculator guide

An all-pass section can alter the relationship between two audio paths without changing the level of either isolated frequency. Set the frequency where the lag reaches ninety degrees and choose a test tone. Read its phase and the local group delay in the same output.

Play the instrument ↑
Default result
-90° phase shift

Calculation and units

The lagging analog transfer is (1 − sτ) divided by (1 + sτ), with τ equal to one over 2π times the corner frequency. Its phase is minus twice the arctangent of test frequency divided by corner frequency. Differentiating phase with respect to angular frequency gives the displayed group delay.

Worked examples

Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.

At the phase corner

Phase corner frequency (Hz) = 1000 · Test frequency (Hz) = 1000.

-90° phase shift. Unity magnitude (0 dB) · group delay 159.154943 µs · time constant 159.154943 µs. Analog lagging first-order all-pass section.

The lag reaches a quarter cycle at the corner while the magnitude stays at unity. A level meter by itself will miss this effect.

DC limit

Phase corner frequency (Hz) = 1000 · Test frequency (Hz) = 0.

0° phase shift. Unity magnitude (0 dB) · group delay 318.309886 µs · time constant 159.154943 µs. Analog lagging first-order all-pass section.

A constant signal passes with zero phase rotation. The slope of the phase curve still corresponds to a finite low-frequency group delay.

Below the corner

Phase corner frequency (Hz) = 1000 · Test frequency (Hz) = 100.

-11.421186° phase shift. Unity magnitude (0 dB) · group delay 315.158303 µs · time constant 159.154943 µs. Analog lagging first-order all-pass section.

At one tenth of the corner frequency the section has started rotating phase. Compare this with the corner preset to locate the steep part of the curve.

Above the corner

Phase corner frequency (Hz) = 1000 · Test frequency (Hz) = 10000.

-168.578814° phase shift. Unity magnitude (0 dB) · group delay 3.151583 µs · time constant 159.154943 µs. Analog lagging first-order all-pass section.

At ten times the corner the phase approaches a polarity reversal. The frequency-dependent slope is smaller, so group delay also falls.

Lower corner at the same ratio

Phase corner frequency (Hz) = 100 · Test frequency (Hz) = 100.

-90° phase shift. Unity magnitude (0 dB) · group delay 1591.549431 µs · time constant 1591.549431 µs. Analog lagging first-order all-pass section.

The phase is the same as in the first setting, but delay measured in microseconds is longer. The absolute frequency scale matters for timing.

Two audio-band kilohertz

Phase corner frequency (Hz) = 2000 · Test frequency (Hz) = 1000.

-53.130102° phase shift. Unity magnitude (0 dB) · group delay 127.323954 µs · time constant 79.577472 µs. Analog lagging first-order all-pass section.

Moving the corner above the test tone reduces lag for that tone. This is a practical adjustment when aligning a parallel processing path.

Interpreting the result

If two copies of a tone will be mixed, compare their phase at that tone before predicting reinforcement or cancellation. For a narrow group of neighboring frequencies, group delay describes how quickly phase varies through that region. Both quantities depend on where the test tone sits.

At its corner, this ideal section rotates phase by ninety degrees without changing amplitude. Comparing a swept phase trace with the model can reveal a swapped polarity or a misplaced corner in a parallel effects chain.

Measurement and model limits

The model assumes ideal unity magnitude, a positive low-frequency polarity and one analog pole. An inverting variant adds a polarity reversal. A digital all-pass section has different frequency mapping, especially near Nyquist, and requires its own coefficient model.

Answers before you play

Common questions

Does the corner mark a three-decibel loss?

No. The magnitude stays at one in this model. The corner is defined by the ninety-degree phase lag.

Why does DC have finite group delay?

At zero frequency the phase is zero, but the phase curve has a nonzero slope nearby. Group delay depends on that slope.

Can I read group delay as a fixed sample delay?

Only a constant group delay across the relevant band resembles a pure time shift. A first-order all-pass section has a varying slope.

Why might the mixed signal lose level?

Parallel paths combine according to their relative phases. Each path can have unity magnitude while their sum changes with frequency.