UNPKG

1.73 kBTypeScriptView Raw
1import { Param } from "../../core/context/Param.js";
2import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
3import { Frequency, NormalRange, Time } from "../../core/type/Units.js";
4import { RecursivePartial } from "../../core/util/Interface.js";
5interface LowpassCombFilterOptions extends ToneAudioNodeOptions {
6 delayTime: Time;
7 resonance: NormalRange;
8 dampening: Frequency;
9}
10/**
11 * A lowpass feedback comb filter. It is similar to
12 * {@link FeedbackCombFilter}, but includes a lowpass filter.
13 * @category Component
14 */
15export declare class LowpassCombFilter extends ToneAudioNode<LowpassCombFilterOptions> {
16 readonly name = "LowpassCombFilter";
17 /**
18 * The delay node
19 */
20 private _combFilter;
21 /**
22 * The lowpass filter
23 */
24 private _lowpass;
25 /**
26 * The delayTime of the comb filter.
27 */
28 readonly delayTime: Param<"time">;
29 /**
30 * The amount of feedback of the delayed signal.
31 */
32 readonly resonance: Param<"normalRange">;
33 readonly input: InputNode;
34 readonly output: OutputNode;
35 /**
36 * @param delayTime The delay time of the comb filter
37 * @param resonance The resonance (feedback) of the comb filter
38 * @param dampening The cutoff of the lowpass filter dampens the signal as it is fedback.
39 */
40 constructor(delayTime?: Time, resonance?: NormalRange, dampening?: Frequency);
41 constructor(options?: RecursivePartial<LowpassCombFilterOptions>);
42 static getDefaults(): LowpassCombFilterOptions;
43 /**
44 * The dampening control of the feedback
45 */
46 get dampening(): Frequency;
47 set dampening(fq: Frequency);
48 dispose(): this;
49}
50export {};