| sidebar_position | 6 |
|---|
import AudioNodePropsTable from "@site/src/components/AudioNodePropsTable" import { Optional, ReadOnly } from '@site/src/components/Badges';
The StereoPannerNode interface represents the change in ratio between two output channels (f. e. left and right speaker).
constructor(context: BaseAudioContext, stereoPannerOptions?: StereoPannerOptions)Inherits all properties from AudioNodeOptions
| Parameter | Type | Default | Description |
|---|---|---|---|
pan |
number |
- | Number representing pan value |
Or by using BaseAudioContext factory method:
BaseAudioContext.createStereoPanner()
It inherits all properties from AudioNode.
| Name | Type | Description |
|---|---|---|
pan |
AudioParam |
a-rate AudioParam representing how the audio signal is distributed between the left and right channels. |
StereoPannerNode does not define any additional methods.
It inherits all methods from AudioNode.
- Default value is 0
- Nominal range is -1 (only left channel) to 1 (only right channel).