Skip to main content
Version: Latest

StereoPannerNode

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

Constructor​

constructor(context: BaseAudioContext, stereoPannerOptions?: StereoPannerOptions)

StereoPannerOptions​

Inherits all properties from AudioNodeOptions

ParameterTypeDefaultDescription
pan
Optional
number-Number representing pan value

Or by using BaseAudioContext factory method: BaseAudioContext.createStereoPanner()

Properties​

It inherits all properties from AudioNode.

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

Methods​

StereoPannerNode does not define any additional methods. It inherits all methods from AudioNode.

Remarks​

pan​

  • Default value is 0
  • Nominal range is -1 (only left channel) to 1 (only right channel).