1 | import { Effect, EffectOptions } from "./Effect.js";
|
2 | import { ToneOscillatorType } from "../source/oscillator/OscillatorInterface.js";
|
3 | import { Frequency, NormalRange, Seconds } from "../core/type/Units.js";
|
4 | import { Signal } from "../signal/Signal.js";
|
5 | import { Param } from "../core/context/Param.js";
|
6 | export interface VibratoOptions extends EffectOptions {
|
7 | maxDelay: Seconds;
|
8 | frequency: Frequency;
|
9 | depth: NormalRange;
|
10 | type: ToneOscillatorType;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare class Vibrato extends Effect<VibratoOptions> {
|
18 | readonly name: string;
|
19 | |
20 |
|
21 |
|
22 | private _delayNode;
|
23 | |
24 |
|
25 |
|
26 | private _lfo;
|
27 | |
28 |
|
29 |
|
30 | readonly frequency: Signal<"frequency">;
|
31 | |
32 |
|
33 |
|
34 | readonly depth: Param<"normalRange">;
|
35 | |
36 |
|
37 |
|
38 |
|
39 | constructor(frequency?: Frequency, depth?: NormalRange);
|
40 | constructor(options?: Partial<VibratoOptions>);
|
41 | static getDefaults(): VibratoOptions;
|
42 | /**
|
43 | * Type of oscillator attached to the Vibrato.
|
44 | */
|
45 | get type(): ToneOscillatorType;
|
46 | set type(type: ToneOscillatorType);
|
47 | dispose(): this;
|
48 | }
|