1 | import { Frequency, Positive } from "../core/type/Units.js";
|
2 | import { Filter, FilterOptions } from "../component/filter/Filter.js";
|
3 | import { SourceOptions } from "../source/Source.js";
|
4 | import { LFOEffect, LFOEffectOptions } from "./LFOEffect.js";
|
5 | export interface AutoFilterOptions extends LFOEffectOptions {
|
6 | baseFrequency: Frequency;
|
7 | octaves: Positive;
|
8 | filter: Omit<FilterOptions, keyof SourceOptions | "frequency" | "detune" | "gain">;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare class AutoFilter extends LFOEffect<AutoFilterOptions> {
|
23 | readonly name: string;
|
24 | |
25 |
|
26 |
|
27 | readonly filter: Filter;
|
28 | |
29 |
|
30 |
|
31 | private _octaves;
|
32 | |
33 |
|
34 |
|
35 |
|
36 |
|
37 | constructor(frequency?: Frequency, baseFrequency?: Frequency, octaves?: Positive);
|
38 | constructor(options?: Partial<AutoFilterOptions>);
|
39 | static getDefaults(): AutoFilterOptions;
|
40 | /**
|
41 | * The minimum value of the filter's cutoff frequency.
|
42 | */
|
43 | get baseFrequency(): Frequency;
|
44 | set baseFrequency(freq: Frequency);
|
45 | /**
|
46 | * The maximum value of the filter's cutoff frequency.
|
47 | */
|
48 | get octaves(): Positive;
|
49 | set octaves(oct: Positive);
|
50 | dispose(): this;
|
51 | }
|