UNPKG

tone

Version:

A Web Audio framework for making interactive music in the browser.

28 lines (27 loc) 687 B
import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode"; import { SignalOperator } from "./SignalOperator"; import { WaveShaper } from "./WaveShaper"; /** * AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1]. * See [[GainToAudio]]. * @category Signal */ export declare class AudioToGain extends SignalOperator<ToneAudioNodeOptions> { readonly name: string; /** * The node which converts the audio ranges */ private _norm; /** * The AudioRange input [-1, 1] */ input: WaveShaper; /** * The GainRange output [0, 1] */ output: WaveShaper; /** * clean up */ dispose(): this; }