positionY property of the
PannerNode interface specifies the Y coordinate of the audio source's position in 3D Cartesian coordinates. The complete vector is defined by the position of the audio source, given as (
positionZ), and the orientation of the audio source (that is, the direction in which it's facing), given as (
Depending on the directionality of the sound (as specified using the attributes
codeOuterGain), the orientation of the sound may alter the perceived volume of the sound as it's being played. If the sound is pointing toward the listener, it will be louder than if the sound is pointed away from the listener.
var positionY = PannerNode.positionY; PannerNode.positionY.value = newPositionY;
value is the Y coordinate of the audio source's position, in 3D Cartesian coordinates.
|Web Audio API
The definition of 'positionY' in that specification.