UNPKG

701 BTypeScriptView Raw
1import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
2import { SignalOperator } from "./SignalOperator.js";
3import { WaveShaper } from "./WaveShaper.js";
4/**
5 * AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1].
6 * @see {@link GainToAudio}.
7 * @category Signal
8 */
9export declare class AudioToGain extends SignalOperator<ToneAudioNodeOptions> {
10 readonly name: string;
11 /**
12 * The node which converts the audio ranges
13 */
14 private _norm;
15 /**
16 * The AudioRange input [-1, 1]
17 */
18 input: WaveShaper;
19 /**
20 * The GainRange output [0, 1]
21 */
22 output: WaveShaper;
23 /**
24 * clean up
25 */
26 dispose(): this;
27}