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.
Constructor
Section titled “Constructor”new FeedbackCombFilter(delayTime?: Time, resonance?: number)Parameters
-
delayTime
TimeoptionalThe delay time of the filter.
-
resonance
numberoptionalThe amount of feedback the filter has.
new FeedbackCombFilter(options?: RecursivePartial<FeedbackCombFilterOptions>)Parameters
- options
RecursivePartial<FeedbackCombFilterOptions>optional
Properties
Section titled “Properties”delayTime
Section titled “delayTime”read-only
delayTime: Param<"time">The amount of delay of the comb filter.
read-only
input: GainThe 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"
onprocessorerror
Section titled “onprocessorerror”↳ inherited from ToneAudioWorklet
onprocessorerror: (e: string) => voidCallback which is invoked when there is an error in the processing
Default: noOp
output
Section titled “output”read-only
output: GainThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
resonance
Section titled “resonance”read-only
resonance: Param<"normalRange">The amount of feedback of the delayed signal.
Methods
Section titled “Methods”onReady()
Section titled “onReady()”onReady(node: AudioWorkletNode): voidInvoked when the module is loaded and the node is created
Parameters
- node
AudioWorkletNode
getDefaults()
Section titled “getDefaults()”static
getDefaults(): FeedbackCombFilterOptionsThe default parameters
Returns FeedbackCombFilterOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()