The AudioListener interface represents the position and orientation
the unique person listening to the audio scene, and is used in
spatialization. All web.audio.PannerNode
s spatialize in relation
the AudioListener stored in the BaseAudioContext.listener
attribute.
The AudioListener interface represents the position and orientation the unique person listening to the audio scene, and is used in spatialization. All `web.audio.PannerNode`s spatialize in relation the AudioListener stored in the `BaseAudioContext.listener` attribute.
(doppler-factor this)
Property.
The deprecated dopplerFactor property of the web.audio.AudioListener
is a double value representing the amount of pitch shift to use
rendering a doppler effect.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor
Property. The deprecated dopplerFactor property of the `web.audio.AudioListener` is a double value representing the amount of pitch shift to use rendering a doppler effect. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor`
(forward-x this)
Property.
The forwardX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX
Property. The forwardX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX`
(forward-y this)
Property.
The forwardY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY
Property. The forwardY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY`
(forward-z this)
Property.
The forwardZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ
Property. The forwardZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ`
(position-x this)
Property.
The positionX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX
Property. The positionX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX`
(position-y this)
Property.
The positionY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY
Property. The positionY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY`
(position-z this)
Property.
The positionZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ
Property. The positionZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ`
(set-doppler-factor! this val)
Property.
The deprecated dopplerFactor property of the web.audio.AudioListener
is a double value representing the amount of pitch shift to use
rendering a doppler effect.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor
Property. The deprecated dopplerFactor property of the `web.audio.AudioListener` is a double value representing the amount of pitch shift to use rendering a doppler effect. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.dopplerFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor`
(set-forward-x! this val)
Property.
The forwardX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX
Property. The forwardX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardX`
(set-forward-y! this val)
Property.
The forwardY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY
Property. The forwardY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardY`
(set-forward-z! this val)
Property.
The forwardZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z value of the
vector defining the forward direction the listener is pointing
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ
Property. The forwardZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z value of the vector defining the forward direction the listener is pointing `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.forwardZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ`
(set-orientation this & args)
Method.
Void.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setOrientation(0,0,-1,0,1,0);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation
Method. Void. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setOrientation(0,0,-1,0,1,0);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation`
(set-position this & args)
Method.
Void.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setPosition(1,1,1);
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition
Method. Void. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.setPosition(1,1,1);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition`
(set-position-x! this val)
Property.
The positionX read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the x position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX
Property. The positionX read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the x position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionX.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionX`
(set-position-y! this val)
Property.
The positionY read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the y position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY
Property. The positionY read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the y position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionY.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionY`
(set-position-z! this val)
Property.
The positionZ read-only property of the web.audio.AudioListener
is an web.audio.AudioParam
representing the z position of the
in 3D cartesian space.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ
Property. The positionZ read-only property of the `web.audio.AudioListener` is an `web.audio.AudioParam` representing the z position of the in 3D cartesian space. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.positionZ.value = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/positionZ`
(set-speed-of-sound! this val)
Property.
The speedOfSound property of the web.audio.AudioListener
interface
a double value representing the speed of sound, in meters per
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound
Property. The speedOfSound property of the `web.audio.AudioListener` interface a double value representing the speed of sound, in meters per `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound`
(set-up-x! this val)
Property.
The upX read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the x value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX
Property. The upX read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the x value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX`
(set-up-y! this val)
Property.
The upY read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the y value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY
Property. The upY read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the y value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY`
(set-up-z! this val)
Property.
The upZ read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the z value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ
Property. The upZ read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the z value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ`
(speed-of-sound this)
Property.
The speedOfSound property of the web.audio.AudioListener
interface
a double value representing the speed of sound, in meters per
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound
Property. The speedOfSound property of the `web.audio.AudioListener` interface a double value representing the speed of sound, in meters per `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.speedOfSound = 343.3;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound`
(up-x this)
Property.
The upX read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the x value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX
Property. The upX read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the x value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upX.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upX`
(up-y this)
Property.
The upY read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the y value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY
Property. The upY read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the y value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upY.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upY`
(up-z this)
Property.
The upZ read-only property of the web.audio.AudioListener
interface
an web.audio.AudioParam
representing the z value of the direction
defining the up direction the listener is pointing in.
var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ
Property. The upZ read-only property of the `web.audio.AudioListener` interface an `web.audio.AudioParam` representing the z value of the direction defining the up direction the listener is pointing in. `var audioCtx = new AudioContext(); var myListener = audioCtx.listener; myListener.upZ.value = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/upZ`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close