UNPKG

1.06 kBTypeScriptView Raw
1import { Param } from "../core/context/Param.js";
2import { NormalRange } from "../core/type/Units.js";
3import { Effect, EffectOptions } from "./Effect.js";
4export interface FeedbackEffectOptions extends EffectOptions {
5 /**
6 * The feedback from the output back to the input
7 * ```
8 * +---<--------<---+
9 * | |
10 * | +----------+ |
11 * +--> feedback +>-+
12 * +----------+
13 * ```
14 */
15 feedback: NormalRange;
16}
17/**
18 * FeedbackEffect provides a loop between an audio source and its own output.
19 * This is a base-class for feedback effects.
20 */
21export declare abstract class FeedbackEffect<Options extends FeedbackEffectOptions> extends Effect<Options> {
22 readonly name: string;
23 /**
24 * the gain which controls the feedback
25 */
26 private _feedbackGain;
27 /**
28 * The amount of signal which is fed back into the effect input.
29 */
30 feedback: Param<"normalRange">;
31 constructor(options: FeedbackEffectOptions);
32 static getDefaults(): FeedbackEffectOptions;
33 dispose(): this;
34}