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.
Constructor
Section titled “Constructor”new Pow(value?: number)Parameters
-
value
numberoptionalConstant exponent value to use
new Pow(options?: Partial<PowOptions>)Parameters
- options
Partial<PowOptions>optional
Properties
Section titled “Properties”input: WaveShaperThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
output
Section titled “output”output: WaveShaperThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
Methods
Section titled “Methods”connect()
Section titled “connect()”↳ inherited from SignalOperator
connect(destination: InputNode, outputNum?: number, inputNum?: number): thisconnect the output of a ToneAudioNode to an AudioParam, AudioNode, or ToneAudioNode
Parameters
-
destination
InputNodeThe output to connect to
-
outputNum
numberoptional default0The output to connect from
-
inputNum
numberoptional default0The input to connect to
Returns this
getDefaults()
Section titled “getDefaults()”static
getDefaults(): PowOptionsReturns all of the default options belonging to the class.
Returns PowOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), disconnect(), fan(), toDestination(), toMaster()