UNPKG

1.27 kBTypeScriptView Raw
1import { Param } from "../core/context/Param.js";
2import { NormalRange, Time } from "../core/type/Units.js";
3import { FeedbackEffect, FeedbackEffectOptions } from "./FeedbackEffect.js";
4interface FeedbackDelayOptions extends FeedbackEffectOptions {
5 delayTime: Time;
6 maxDelay: Time;
7}
8/**
9 * FeedbackDelay is a DelayNode in which part of output signal is fed back into the delay.
10 *
11 * @param delayTime The delay applied to the incoming signal.
12 * @param feedback The amount of the effected signal which is fed back through the delay.
13 * @example
14 * const feedbackDelay = new Tone.FeedbackDelay("8n", 0.5).toDestination();
15 * const tom = new Tone.MembraneSynth({
16 * octaves: 4,
17 * pitchDecay: 0.1
18 * }).connect(feedbackDelay);
19 * tom.triggerAttackRelease("A2", "32n");
20 * @category Effect
21 */
22export declare class FeedbackDelay extends FeedbackEffect<FeedbackDelayOptions> {
23 readonly name: string;
24 /**
25 * the delay node
26 */
27 private _delayNode;
28 /**
29 * The delayTime of the FeedbackDelay.
30 */
31 readonly delayTime: Param<"time">;
32 constructor(delayTime?: Time, feedback?: NormalRange);
33 constructor(options?: Partial<FeedbackDelayOptions>);
34 static getDefaults(): FeedbackDelayOptions;
35 dispose(): this;
36}
37export {};