Skip to content
Tone.js

Pow

class Signal ↳ extends SignalOperator<PowOptions>

Pow applies an exponent to the incoming signal. The incoming signal must be AudioRange [-1, 1]

const pow = new Tone.Pow(2);
const sig = new Tone.Signal(0.5).connect(pow);
// output of pow is 0.25.
new Pow(value?: number)

Parameters

  • value number optional

    Constant exponent value to use

new Pow(options?: Partial<PowOptions>)

Parameters

input: WaveShaper

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Pow"

output: WaveShaper

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

value: number

The value of the exponent.

↳ inherited from SignalOperator

connect(destination: InputNode, outputNum?: number, inputNum?: number): this

connect the output of a ToneAudioNode to an AudioParam, AudioNode, or ToneAudioNode

Parameters

  • destination InputNode

    The output to connect to

  • outputNum number optional default 0

    The output to connect from

  • inputNum number optional default 0

    The input to connect to

Returns this

dispose(): this

Clean up.

Returns this

static

getDefaults(): PowOptions

Returns all of the default options belonging to the class.

Returns PowOptions