Tone.Abs

↳ EXTENDS Tone.SignalBase

Return the absolute value of an incoming signal.

CONSTRUCTOR

new Tone.Abs ( )

EXAMPLE

var signal = new Tone.Signal(-1);
var abs = new Tone.Abs();
signal.connect(abs);
//the output of abs is 1.

Methods

.dispose ( )

#
↪ returns Tone.Abs

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