import { Gain } from "../core/context/Gain"; import { Param } from "../core/context/Param"; import { Signal, SignalOptions } from "./Signal"; /** * Add a signal and a number or two signals. When no value is * passed into the constructor, Tone.Add will sum input and `addend` * If a value is passed into the constructor, the it will be added to the input. * * @example * var signal = new Signal(2); * var add = new Add(2); * signal.connect(add); * //the output of add equals 4 * @example * //if constructed with no arguments * //it will add the first and second inputs * var add = new Add(); * var sig0 = new Signal(3).connect(add); * var sig1 = new Signal(4).connect(add.addend); * //the output of add equals 7. * @category Signal */ export declare class Add extends Signal { override: boolean; readonly name: string; /** * the summing node */ private _sum; readonly input: Gain; readonly output: Gain; /** * The value which is added to the input signal */ readonly addend: Param; /** * @param value If no value is provided, Tone.Add will sum the first and second inputs. */ constructor(value?: number); constructor(options?: Partial>); static getDefaults(): SignalOptions; dispose(): this; }