UNPKG

836 BTypeScriptView Raw
1import { ToneAudioNodeOptions } from "../core/context/ToneAudioNode.js";
2import { SignalOperator } from "./SignalOperator.js";
3import { WaveShaper } from "./WaveShaper.js";
4/**
5 * Return the absolute value of an incoming signal.
6 *
7 * @example
8 * return Tone.Offline(() => {
9 * const abs = new Tone.Abs().toDestination();
10 * const signal = new Tone.Signal(1);
11 * signal.rampTo(-1, 0.5);
12 * signal.connect(abs);
13 * }, 0.5, 1);
14 * @category Signal
15 */
16export declare class Abs extends SignalOperator<ToneAudioNodeOptions> {
17 readonly name: string;
18 /**
19 * The node which converts the audio ranges
20 */
21 private _abs;
22 /**
23 * The AudioRange input [-1, 1]
24 */
25 input: WaveShaper;
26 /**
27 * The output range [0, 1]
28 */
29 output: WaveShaper;
30 /**
31 * clean up
32 */
33 dispose(): this;
34}