StereoPannerNode

The StereoPannerNode interface of the Web Audio API represents a simple stereo panner node that can be used to pan an audio stream left or right. It is an AudioNode audio-processing module that positions an incoming audio stream in a stereo image using a low-cost equal-power panning algorithm. The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode.   
   EventTarget     AudioNode     StereoPannerNode      Number of inputs 1   Number of outputs 1   Channel count mode "clamped-max"   Channel count 2   Channel interpretation "speakers"   

Constructor
 StereoPannerNode()  Creates a new instance of a StereoPannerNode object.  
Properties

Inherits properties from its parent, AudioNode.  
StereoPannerNode.pan Read only 
  Is an a-rate AudioParam representing the amount of panning to apply.  

Methods
No specific method; inherits methods from its parent, AudioNode.
Example
See BaseAudioContext.createStereoPanner() for example code.
Specifications

Specification
Web Audio API # stereopannernode

Browser compatibility




Desktop
Mobile



Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
WebView Android
Chrome Android
Firefox for Android
Opera Android
Safari on IOS
Samsung Internet




StereoPannerNode
41
12
37
No
28
14.1
41
41
37
28
14.5
4.0


StereoPannerNode

55
Before Chrome 59, the default values were not supported.

79
53
No
42
14.1

55
Before Chrome 59, the default values were not supported.


55
Before Chrome 59, the default values were not supported.

53
42
14.5

6.0
Before Samsung Internet 7.0, the default values were not supported.



pan
41
12
37
No
28
14.1
41
41
37
28
14.5
4.0



See also
 Using the Web Audio API 


Found a problem with this page?

Edit on GitHub
Source on GitHub
Report a problem with this content on GitHub
Want to fix the problem yourself? See our Contribution guide.


Last modified: Feb 3, 2022, by MDN contributors


    
{'path': 'public/docs/dom/stereopannernode.html', 'source': 'DevDocs.IO'}