Table of Contents

Class StereoPannerNode

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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.

[Value("StereoPannerNode")]
public class StereoPannerNode : AudioNode
Inheritance
StereoPannerNode
Inherited Members

Remarks

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.

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

-Using the Web Audio API

See also on MDN

Constructors

StereoPannerNode()

public StereoPannerNode()

StereoPannerNode(BaseAudioContext, StereoPannerOptions)

The StereoPannerNode() constructor of the Web Audio API creates a new StereoPannerNode object which is an AudioNode that represents a simple stereo panner node that can be used to pan an audio stream left or right.

public StereoPannerNode(BaseAudioContext context, StereoPannerOptions options = null)

Parameters

context BaseAudioContext
options StereoPannerOptions

Remarks

Properties

Pan

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("pan")]
public AudioParam Pan { get; }

Property Value

AudioParam

An a-rate AudioParam containing the panning to apply.

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

Remarks