PanVol
class Component ↳ extends ToneAudioNode<PanVolOptions>
PanVol is a Tone.Panner and Tone.Volume in one.
// pan the incoming signal left and drop the volume const panVol = new Tone.PanVol(-0.25, -12).toDestination(); const osc = new Tone.Oscillator().connect(panVol).start();
Constructor
Section titled “Constructor”new PanVol(pan?: number, volume?: number)Parameters
-
pan
numberoptionalthe initial pan
-
volume
numberoptionalThe output volume.
new PanVol(options?: Partial<PanVolOptions>)Parameters
- options
Partial<PanVolOptions>optional
Properties
Section titled “Properties”read-only
input: InputNodeThe 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”read-only
output: OutputNodeThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
read-only
pan: Param<"audioRange">The L/R panning control. -1 = hard left, 1 = hard right.
Range: -1 to 1
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): PanVolOptionsReturns all of the default options belonging to the class.
Returns PanVolOptions
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(), connect(), disconnect(), fan(), toDestination(), toMaster()