UNPKG

tone

Version:

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

31 lines (30 loc) 836 B
import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode"; import { Multiply } from "./Multiply"; import { SignalOperator } from "./SignalOperator"; /** * Negate the incoming signal. i.e. an input signal of 10 will output -10 * * @example * import { Negate, Signal } from "tone"; * const neg = new Negate(); * const sig = new Signal(-2).connect(neg); * // output of neg is positive 2. * @category Signal */ export declare class Negate extends SignalOperator<ToneAudioNodeOptions> { readonly name: string; /** * negation is done by multiplying by -1 */ private _multiply; /** * The input and output are equal to the multiply node */ input: Multiply<"number">; output: Multiply<"number">; /** * clean up * @returns {Negate} this */ dispose(): this; }