tone
Version:
A Web Audio framework for making interactive music in the browser.
35 lines (34 loc) • 1.06 kB
TypeScript
import { Param } from "../core/context/Param.js";
import { NormalRange } from "../core/type/Units.js";
import { Effect, EffectOptions } from "./Effect.js";
export interface FeedbackEffectOptions extends EffectOptions {
/**
* The feedback from the output back to the input
* ```
* +---<--------<---+
* | |
* | +----------+ |
* +--> feedback +>-+
* +----------+
* ```
*/
feedback: NormalRange;
}
/**
* FeedbackEffect provides a loop between an audio source and its own output.
* This is a base-class for feedback effects.
*/
export declare abstract class FeedbackEffect<Options extends FeedbackEffectOptions> extends Effect<Options> {
readonly name: string;
/**
* the gain which controls the feedback
*/
private _feedbackGain;
/**
* The amount of signal which is fed back into the effect input.
*/
feedback: Param<"normalRange">;
constructor(options: FeedbackEffectOptions);
static getDefaults(): FeedbackEffectOptions;
dispose(): this;
}