W3cubDocs

/Web APIs

StereoPannerNode: pan property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨April 2021⁩.

The pan property of the StereoPannerNode interface is an a-rate AudioParam representing the amount of panning to apply. The value can range between -1 (full left pan) and 1 (full right pan).

Value

An a-rate AudioParam containing the panning to apply.

Note: Though the AudioParam returned is read-only, the value it represents is not.

Examples

See BaseAudioContext.createStereoPanner() for example code.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
pan 41 12 37 28 14.1 41 37 28 14.5 4.0 41 14.5

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/pan