Skip to content
Tone.js

FeedbackCombFilter

class Component ↳ extends ToneAudioWorklet<FeedbackCombFilterOptions>

Comb filters are basic building blocks for physical modeling. Read more about comb filters on CCRMA’s website.

This comb filter is implemented with the AudioWorkletNode which allows it to have feedback delays less than the Web Audio processing block of 128 samples. There is a polyfill for browsers that don’t yet support the AudioWorkletNode, but it will add some latency and have slower performance than the AudioWorkletNode.

new FeedbackCombFilter(delayTime?: Time, resonance?: number)

Parameters

  • delayTime Time optional

    The delay time of the filter.

  • resonance number optional

    The amount of feedback the filter has.

new FeedbackCombFilter(options?: RecursivePartial<FeedbackCombFilterOptions>)

Parameters

read-only

delayTime: Param<"time">

The amount of delay of the comb filter.

read-only

input: Gain

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: "FeedbackCombFilter"

The name of the class

Default: "FeedbackCombFilter"

↳ inherited from ToneAudioWorklet

onprocessorerror: (e: string) => void

Callback which is invoked when there is an error in the processing

Default: noOp

read-only

output: Gain

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

read-only

resonance: Param<"normalRange">

The amount of feedback of the delayed signal.

dispose(): this

Dispose and disconnect

Returns this

onReady(node: AudioWorkletNode): void

Invoked when the module is loaded and the node is created

Parameters

  • node AudioWorkletNode

static

The default parameters

Returns FeedbackCombFilterOptions