UNPKG

847 BTypeScriptView Raw
1import { Gain } from "../core/context/Gain.js";
2import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
3import { SignalOperator } from "./SignalOperator.js";
4/**
5 * Tone.Zero outputs 0's at audio-rate. The reason this has to be
6 * it's own class is that many browsers optimize out Tone.Signal
7 * with a value of 0 and will not process nodes further down the graph.
8 * @category Signal
9 */
10export declare class Zero extends SignalOperator<ToneAudioNodeOptions> {
11 readonly name: string;
12 /**
13 * The gain node which connects the constant source to the output
14 */
15 private _gain;
16 /**
17 * Only outputs 0
18 */
19 output: Gain<"gain">;
20 /**
21 * no input node
22 */
23 input: undefined;
24 constructor(options?: Partial<ToneAudioNodeOptions>);
25 /**
26 * clean up
27 */
28 dispose(): this;
29}