1 | import { CrossFade } from "../component/channel/CrossFade.js";
|
2 | import { Gain } from "../core/context/Gain.js";
|
3 | import { ToneAudioNode, ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
|
4 | import { NormalRange } from "../core/type/Units.js";
|
5 | import { Signal } from "../signal/Signal.js";
|
6 | export interface EffectOptions extends ToneAudioNodeOptions {
|
7 | wet: NormalRange;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare abstract class Effect<Options extends EffectOptions> extends ToneAudioNode<Options> {
|
15 | readonly name: string;
|
16 | |
17 |
|
18 |
|
19 | private _dryWet;
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 | wet: Signal<"normalRange">;
|
26 | |
27 |
|
28 |
|
29 | protected effectSend: Gain;
|
30 | |
31 |
|
32 |
|
33 | protected effectReturn: Gain;
|
34 | |
35 |
|
36 |
|
37 | input: Gain;
|
38 | |
39 |
|
40 |
|
41 | output: CrossFade;
|
42 | constructor(options: EffectOptions);
|
43 | static getDefaults(): EffectOptions;
|
44 | /**
|
45 | * chains the effect in between the effectSend and effectReturn
|
46 | */
|
47 | protected connectEffect(effect: ToneAudioNode | AudioNode): this;
|
48 | dispose(): this;
|
49 | }
|