AudioToGain
class Signal ↳ extends SignalOperator<ToneAudioNodeOptions>
AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1].
See also: GainToAudio.
Constructor
Section titled “Constructor”new AudioToGain(options?: Partial<ToneWithContextOptions>)Parameters
- options
Partial<ToneWithContextOptions>optional
Properties
Section titled “Properties”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
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks(), getDefaults() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), disconnect(), fan(), toDestination(), toMaster()