UNPKG

2.04 kBTypeScriptView Raw
1import { Gain } from "../../core/context/Gain.js";
2import { Param } from "../../core/context/Param.js";
3import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
4import { Decibels, Frequency } from "../../core/type/Units.js";
5import { Signal } from "../../signal/Signal.js";
6import { MultibandSplit } from "../channel/MultibandSplit.js";
7interface EQ3Options extends ToneAudioNodeOptions {
8 low: Decibels;
9 mid: Decibels;
10 high: Decibels;
11 lowFrequency: Frequency;
12 highFrequency: Frequency;
13}
14/**
15 * EQ3 provides 3 equalizer bins: Low/Mid/High.
16 * @category Component
17 */
18export declare class EQ3 extends ToneAudioNode<EQ3Options> {
19 readonly name: string;
20 /**
21 * the input
22 */
23 readonly input: MultibandSplit;
24 /**
25 * the output
26 */
27 readonly output: Gain<"gain">;
28 /**
29 * Splits the input into three outputs
30 */
31 private _multibandSplit;
32 /**
33 * The gain for the lower signals
34 */
35 private _lowGain;
36 /**
37 * The gain for the mid signals
38 */
39 private _midGain;
40 /**
41 * The gain for the high signals
42 */
43 private _highGain;
44 /**
45 * The gain in decibels of the low part
46 */
47 readonly low: Param<"decibels">;
48 /**
49 * The gain in decibels of the mid part
50 */
51 readonly mid: Param<"decibels">;
52 /**
53 * The gain in decibels of the high part
54 */
55 readonly high: Param<"decibels">;
56 /**
57 * The Q value for all of the filters.
58 */
59 readonly Q: Signal<"positive">;
60 /**
61 * The low/mid crossover frequency.
62 */
63 readonly lowFrequency: Signal<"frequency">;
64 /**
65 * The mid/high crossover frequency.
66 */
67 readonly highFrequency: Signal<"frequency">;
68 protected _internalChannels: ToneAudioNode[];
69 constructor(lowLevel?: Decibels, midLevel?: Decibels, highLevel?: Decibels);
70 constructor(options: Partial<EQ3Options>);
71 static getDefaults(): EQ3Options;
72 /**
73 * Clean up.
74 */
75 dispose(): this;
76}
77export {};