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.
| Parameter | Type | Default | |
|---|---|---|---|
pan Optional | number | 0.0 | Initial 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| Name | Type | Description |
|---|---|---|
pan | AudioParam | a-rate AudioParam representing how the audio signal is distributed between the left and right channels. |
Methods
Inherits all methods from AudioNode.
AudioNodemethodsStereoPannerNode does not define any additional methods.
Remarks
pan
- Default value is
0.0. - Nominal range is
-1.0(only left channel) to1.0(only right channel).