comb~ Reference

Apply a comb filter effect

comb~

Description

Use the comb~ object to apply the classic comb filtering effect to an audio input. The comb~ object mixes the current input sample with earlier input and/or output samples, according to the formula:

yn = axn + bxn-(DR/1000) + cyn-(DR/1000)

where R is the sampling rate and D is a delay time in milliseconds.

Examples

Filter parameters may be supplied as float values or as signals

Arguments

max-delay [float]

Optional
Unitsms

The maximum delay time. Defaults to 10 ms if not specified.

initial-delay [float]

Optional
Unitsms

Initial delay time

gain-coefficient [float]

Optional

Gain coefficient

feedforward-coefficient [float]

Optional

The feedforward coefficient

feedback-coefficient [float]

Optional

The feedback coefficient

Attributes

Common Box Attributes

Messages

float

Arguments

filter-parameters [float]
2nd inlet: delay time in milliseconds
3rd inlet: gain coefficient
4th inlet: feedforward coefficient
Right inlet: feedback coefficient

clear

Reset filter state to zero internal feedback

signal

Left inlet: signal to be filtered
2nd inlet: delay time in milliseconds
3rd inlet: gain coefficient
4th inlet: feedforward coefficient
Right inlet: feedback coefficient

Output

signal

The filtered signal.

See Also

Name Description
Sound Processing Techniques Sound Processing Techniques
allpass~
delay~
reson~
teeth~
MSP Delay Tutorial 6: Comb Filter MSP Delay Tutorial 6: Comb Filter
Audio Filtering Audio Filtering