Back to Content

StereoPannerNode: pan property

files/en-us/web/api/stereopannernode/pan/index.md

latest829 B
Original Source

{{APIRef("Web Audio API")}}

The pan property of the {{ domxref("StereoPannerNode") }} interface is an a-rate {{domxref("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 {{domxref("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

{{Specifications}}

Browser compatibility

{{Compat}}

See also