1 | import { SignalOperator, SignalOperatorOptions } from "./SignalOperator.js";
|
2 | import { ToneAudioNode } from "../core/context/ToneAudioNode.js";
|
3 | export type GreaterThanZeroOptions = SignalOperatorOptions;
|
4 | /**
|
5 | * GreaterThanZero outputs 1 when the input is strictly greater than zero
|
6 | * @example
|
7 | * return Tone.Offline(() => {
|
8 | * const gt0 = new Tone.GreaterThanZero().toDestination();
|
9 | * const sig = new Tone.Signal(0.5).connect(gt0);
|
10 | * sig.setValueAtTime(-1, 0.05);
|
11 | * }, 0.1, 1);
|
12 | * @category Signal
|
13 | */
|
14 | export declare class GreaterThanZero extends SignalOperator<GreaterThanZeroOptions> {
|
15 | readonly name: string;
|
16 | /**
|
17 | * The waveshaper
|
18 | */
|
19 | private _thresh;
|
20 | /**
|
21 | * Scale the first thresholded signal by a large value.
|
22 | * this will help with values which are very close to 0
|
23 | */
|
24 | private _scale;
|
25 | readonly output: ToneAudioNode;
|
26 | readonly input: ToneAudioNode;
|
27 | constructor(options?: Partial<GreaterThanZeroOptions>);
|
28 | dispose(): this;
|
29 | }
|