UNPKG

813 BTypeScriptView Raw
1import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
2import { Multiply } from "./Multiply.js";
3import { SignalOperator } from "./SignalOperator.js";
4/**
5 * Negate the incoming signal. i.e. an input signal of 10 will output -10
6 *
7 * @example
8 * const neg = new Tone.Negate();
9 * const sig = new Tone.Signal(-2).connect(neg);
10 * // output of neg is positive 2.
11 * @category Signal
12 */
13export declare class Negate extends SignalOperator<ToneAudioNodeOptions> {
14 readonly name: string;
15 /**
16 * negation is done by multiplying by -1
17 */
18 private _multiply;
19 /**
20 * The input and output are equal to the multiply node
21 */
22 input: Multiply<"number">;
23 output: Multiply<"number">;
24 /**
25 * clean up
26 * @returns {Negate} this
27 */
28 dispose(): this;
29}