UNPKG

1.33 kBTypeScriptView Raw
1import { StereoEffect, StereoEffectOptions } from "./StereoEffect.js";
2import { NormalRange } from "../core/type/Units.js";
3import { Signal } from "../signal/Signal.js";
4import { Gain } from "../core/context/Gain.js";
5import { Split } from "../component/channel/Split.js";
6import { Merge } from "../component/channel/Merge.js";
7export interface StereoFeedbackEffectOptions extends StereoEffectOptions {
8 feedback: NormalRange;
9}
10/**
11 * Base class for stereo feedback effects where the effectReturn is fed back into the same channel.
12 */
13export declare class StereoFeedbackEffect<Options extends StereoFeedbackEffectOptions> extends StereoEffect<Options> {
14 /**
15 * The amount of feedback from the output
16 * back into the input of the effect (routed
17 * across left and right channels).
18 */
19 readonly feedback: Signal<"normalRange">;
20 /**
21 * the left side feedback
22 */
23 protected _feedbackL: Gain;
24 /**
25 * the right side feedback
26 */
27 protected _feedbackR: Gain;
28 /**
29 * Split the channels for feedback
30 */
31 protected _feedbackSplit: Split;
32 /**
33 * Merge the channels for feedback
34 */
35 protected _feedbackMerge: Merge;
36 constructor(options: StereoFeedbackEffectOptions);
37 static getDefaults(): StereoFeedbackEffectOptions;
38 dispose(): this;
39}