Tone.GreaterThanZero

↳ EXTENDS Tone.SignalBase

GreaterThanZero outputs 1 when the input is strictly greater than zero

CONSTRUCTOR

new Tone.GreaterThanZero ( )

EXAMPLE

var gt0 = new Tone.GreaterThanZero();
var sig = new Tone.Signal(0.01).connect(gt0);
//the output of gt0 is 1. 
sig.value = 0;
//the output of gt0 is 0. 

Methods

.dispose ( )

#
↪ returns Tone.GreaterThanZero

this

dispose method

</>
inherited from Tone.SignalBase

.connect ( )

#
node
type: AudioParam or AudioNode or Tone.Signal or Tone
outputNumber

The output number to connect from.

type: number
default: 0
inputNumber

The input number to connect to.

type: number
default: 0
↪ returns Tone.SignalBase

this

When signals connect to other signals or AudioParams, they take over the output value of that signal or AudioParam. For all other nodes, the behavior is the same as a default connect.

</>
docs generated Sep 15 2019