import { Gain } from "../../core/context/Gain"; import { Param } from "../../core/context/Param"; import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode"; import { Decibels } from "../../core/type/Units"; interface VolumeOptions extends ToneAudioNodeOptions { volume: Decibels; mute: boolean; } /** * Volume is a simple volume node, useful for creating a volume fader. * * @example * var vol = new Volume(-12); * instrument.chain(vol, Tone.Destination); * @category Component */ export declare class Volume extends ToneAudioNode { readonly name: string; /** * the output node */ output: Gain; /** * Input and output are the same */ input: Gain; /** * The unmuted volume */ private _unmutedVolume; /** * The volume control in decibels. */ volume: Param; /** * @param volume the initial volume in decibels */ constructor(volume?: Decibels); constructor(options?: Partial); static getDefaults(): VolumeOptions; /** * Mute the output. * @example * //mute the output * volume.mute = true; */ mute: boolean; /** * clean up */ dispose(): this; } export {};