Tone.Pow

↳ EXTENDS Tone.SignalBase

Pow applies an exponent to the incoming signal. The incoming signal must be AudioRange.

CONSTRUCTOR

new Tone.Pow (
exp
)
exp

The exponent to apply to the incoming signal, must be at least 2.

EXAMPLE

var pow = new Tone.Pow(2);
var sig = new Tone.Signal(0.5).connect(pow);
//output of pow is 0.25. 

Members

.value

number #

The value of the exponent.

</>

Methods

.dispose ( )

#
↪ returns Tone.Pow

this

Clean up.

</>
inherited from Tone.SignalBase

.connect ( )

#
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