Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. StereoPannerNode

StereoPannerNode

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⁩.

TheStereoPannerNode interface of theWeb Audio API represents a simple stereo panner node that can be used to pan an audio stream left or right. It is anAudioNode audio-processing module that positions an incoming audio stream in a stereo image using a low-cost equal-powerpanning algorithm.

Thepan property takes a unitless value between-1 (full left pan) and1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a fullPannerNode.

The Stereo Panner Node moved the sound's position from the center of two speakers to the left.

EventTarget AudioNode StereoPannerNode
Number of inputs1
Number of outputs1
Channel count mode"clamped-max"
Channel count2
Channel interpretation"speakers"

Constructor

StereoPannerNode()

Creates a new instance of aStereoPannerNode object.

Instance properties

Inherits properties from its parent,AudioNode.

StereoPannerNode.panRead only

Ana-rateAudioParam representing the amount of panning to apply.

Instance methods

No specific method; inherits methods from its parent,AudioNode.

Example

SeeBaseAudioContext.createStereoPanner() for example code.

Specifications

Specification
Web Audio API
# stereopannernode

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp