What is comb filter in music?

What is comb filter?

Synthesis & Sound Design

A filter that creates regularly spaced peaks and notches in the frequency spectrum. It is commonly produced by combining a signal with a delayed version of itself and can create resonant or metallic effects.

What does comb filter mean?

A comb filter produces a repeating pattern of peaks and dips across frequency, resembling the teeth of a comb on a response plot. A common cause is adding a signal to a delayed copy of itself. At some frequencies the two versions reinforce one another; at others their phase relationship produces partial or complete cancellation.

The delay sets the spacing of the pattern, while the relative level and polarity affect its depth and placement. Equal-level copies can create complete nulls at particular frequencies in an ideal model. A weaker reflection generally creates shallower dips. The pattern is evenly spaced in hertz, so it does not look evenly spaced on a logarithmic frequency axis.

Comb filtering can occur acoustically when a microphone receives direct sound and a reflection, or electrically when related tracks arrive with different delays and are summed. It can be unwanted coloration or an intentional sound-design tool. Modulating the delay moves the pattern, a central part of a flanger’s characteristic sweep.

A Delayed-Copy Comb Filter

y(t)=x(t)+g x(t−τ)y(t)=x(t)+g\,x(t-\tau)
Δf=1τ\Delta f=\frac{1}{\tau}
fnull,k=2k+12τ,k=0,1,2,…f_{\mathrm{null},k}=\frac{2k+1}{2\tau},\qquad k=0,1,2,\ldots

In this linear, time-invariant **feedforward** model, x(t)x(t) and y(t)y(t) are the input and output signals, τ>0\tau>0 is delay in seconds, and gg is the delayed copy's real, dimensionless gain (its sign represents relative polarity). For g≠0g\ne0, consecutive peaks and consecutive dips are separated by Δf=1/τ\Delta f=1/\tau hertz. The specified null formula applies to g=+1g=+1: identical equal-level copies cancel completely at f=(2k+1)/(2τ)f=(2k+1)/(2\tau), k=0,1,2,…k=0,1,2,\ldots. If 0<∣g∣≠10<|g|\ne1, the comb notches are only partial; with g=0g=0, there is **no comb pattern**. For g=−1g=-1, opposite-polarity equal-level copies instead null at f=k/τf=k/\tau, including DC (k=0k=0). The model assumes coherent copies with no additional filtering, not a feedback loop or arbitrary microphone responses.

Examples related to comb filter

Common confusions and distinctions

A polarity switch reverses all sample signs; it does not remove a time delay or align every frequency. Two unrelated signals do not form a stable comb merely because they are mixed. Equalizing a deep cancellation may be ineffective because the underlying interference remains; changing the paths or their relative levels addresses a different part of the problem.

Back to the glossary