Skip to main content
Version: Next

StereoPannerNode

The StereoPannerNode interface represents the change in ratio between two output channels (left and right speaker).

Constructor​

constructor(context: BaseAudioContext, options?: StereoPannerOptions)

StereoPannerOptions​

Inherits all properties from AudioNodeOptions.

ParameterTypeDefault
pan
Optional
number0.0Initial value for pan.

You can also create a StereoPannerNode via the BaseAudioContext.createStereoPanner() factory method, which uses default values.

Properties​

Inherits all properties from AudioNode.

AudioNodeproperties
NameTypeDescription
panAudioParama-rate AudioParam representing how the audio signal is distributed between the left and right channels.

Methods​

Inherits all methods from AudioNode.

AudioNodemethods

StereoPannerNode does not define any additional methods.

Remarks​

pan​

  • Default value is 0.0.
  • Nominal range is -1.0 (only left channel) to 1.0 (only right channel).