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.
In this linear, time-invariant **feedforward** model, x(t) and y(t) are the input and output signals, τ>0 is delay in seconds, and g is the delayed copy's real, dimensionless gain (its sign represents relative polarity). For g=0, consecutive peaks and consecutive dips are separated by Δf=1/τ hertz. The specified null formula applies to g=+1: identical equal-level copies cancel completely at f=(2k+1)/(2τ), k=0,1,2,…. If 0<∣g∣=1, the comb notches are only partial; with g=0, there is **no comb pattern**. For g=−1, opposite-polarity equal-level copies instead null at f=k/τ, including DC (k=0). The model assumes coherent copies with no additional filtering, not a feedback loop or arbitrary microphone responses.
Examples related to comb filter
- A 1 ms delay gives a 1,000 Hz comb spacing. With equal-level, same-polarity copies, nulls occur at 500, 1,500, and 2,500 Hz, while reinforcement occurs at 1,000 Hz intervals.
- A close microphone and a room microphone can each sound acceptable alone but produce a hollow combined tone because they capture related sound with a time difference. Moving or delaying one changes the interaction.
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