A PannerNode always has exactly one input and one output: the can be mono or stereo but the output is always stereo (2 channels); can't have panning effects without at least two audio channels!
A PannerNode always has exactly one input and one output: the can be mono or stereo but the output is always stereo (2 channels); can't have panning effects without at least two audio channels!
(cone-inner-angle this)
Property.
A double.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneInnerAngle = 360;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle
Property. A double. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneInnerAngle = 360;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle`
(cone-outer-angle this)
Property.
A double.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterAngle = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle
Property. A double. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterAngle = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle`
(cone-outer-gain this)
Property.
The coneOuterGain property of the web.PannerNode
interface
a double value, describing the amount of volume reduction outside
cone, defined by the web.coneOuterAngle
attribute.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterGain = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain
Property. The coneOuterGain property of the `web.PannerNode` interface a double value, describing the amount of volume reduction outside cone, defined by the `web.coneOuterAngle` attribute. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterGain = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain`
Constructor.
The PannerNode() constructor of the Web Audio API creates a new web.PannerNode
object instance.
Inherits parameters from the audio.AudioNodeOptions
dictionary.
\tcontext
\tA web.BaseAudioContext
representing the audio context you want the node to be associated with.
\toptions Optional
\tA PannerOptions dictionary object defining the properties you want the PannerNode to have (It also inherits the options defined in the AudioNodeOptions dictionary.):
\t\tpanningModel: The web.PannerNode.panningModel
you want the web.PannerNode
to have (the default is equalpower.)
\t\tdistanceModel: The web.PannerNode.distanceModel
you want the web.PannerNode
to have (the default is inverse.)
\t\tpositionX: The web.PannerNode.positionX
you want the web.PannerNode
to have (the default is 0.)
\t\tpositionY: The web.PannerNode.positionY
you want the web.PannerNode
to have (the default is 0.)
\t\tpositionZ: The web.PannerNode.positionZ
you want the web.PannerNode
to have (the default is 0.)
\t\torientationX: The web.PannerNode.orientationX
you want the web.PannerNode
to have (the default is 1.)
\t\torientationY: The web.PannerNode.orientationY
you want the web.PannerNode
to have (the default is 0.)
\t\torientationZ: The web.PannerNode.orientationZ
you want the web.PannerNode
to have (the default is 0.)
\t\trefDistance: The web.PannerNode.refDistance
you want the web.PannerNode
to have. The default is 1, and negative values are not allowed.
\t\tmaxDistance: The web.PannerNode.maxDistance
you want the web.PannerNode
to have. The default is 10000, and non-positive values are not allowed.
\t\trollOffFactor: The web.PannerNode.rollOffFactor
you want the web.PannerNode
to have. The default is 1, and negative values are not allowed.
\t\tconeInnerAngle: The web.PannerNode.coneInnerAngle
you want the web.PannerNode
to have (the default is 360.)
\t\tconeOuterAngle: The web.PannerNode.coneOuterAngle
you want the web.PannerNode
to have (the default is 360.)
\t\tconeOuterGain: The web.PannerNode.coneOuterGain
you want the web.PannerNode
to have. The default is 0, and its value can be in the range 0–1.
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode
Constructor. The PannerNode() constructor of the Web Audio API creates a new `web.PannerNode` object instance. Inherits parameters from the `audio.AudioNodeOptions` dictionary. \tcontext \tA `web.BaseAudioContext` representing the audio context you want the node to be associated with. \toptions Optional \tA PannerOptions dictionary object defining the properties you want the PannerNode to have (It also inherits the options defined in the AudioNodeOptions dictionary.): \t\tpanningModel: The `web.PannerNode.panningModel` you want the `web.PannerNode` to have (the default is equalpower.) \t\tdistanceModel: The `web.PannerNode.distanceModel` you want the `web.PannerNode` to have (the default is inverse.) \t\tpositionX: The `web.PannerNode.positionX` you want the `web.PannerNode` to have (the default is 0.) \t\tpositionY: The `web.PannerNode.positionY` you want the `web.PannerNode` to have (the default is 0.) \t\tpositionZ: The `web.PannerNode.positionZ` you want the `web.PannerNode` to have (the default is 0.) \t\torientationX: The `web.PannerNode.orientationX` you want the `web.PannerNode` to have (the default is 1.) \t\torientationY: The `web.PannerNode.orientationY` you want the `web.PannerNode` to have (the default is 0.) \t\torientationZ: The `web.PannerNode.orientationZ` you want the `web.PannerNode` to have (the default is 0.) \t\trefDistance: The `web.PannerNode.refDistance` you want the `web.PannerNode` to have. The default is 1, and negative values are not allowed. \t\tmaxDistance: The `web.PannerNode.maxDistance` you want the `web.PannerNode` to have. The default is 10000, and non-positive values are not allowed. \t\trollOffFactor: The `web.PannerNode.rollOffFactor` you want the `web.PannerNode` to have. The default is 1, and negative values are not allowed. \t\tconeInnerAngle: The `web.PannerNode.coneInnerAngle` you want the `web.PannerNode` to have (the default is 360.) \t\tconeOuterAngle: The `web.PannerNode.coneOuterAngle` you want the `web.PannerNode` to have (the default is 360.) \t\tconeOuterGain: The `web.PannerNode.coneOuterGain` you want the `web.PannerNode` to have. The default is 0, and its value can be in the range 0–1. See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode`
(distance-model this)
Property.
A enum — see DistanceModelType.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.distanceModel = 'inverse';
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel
Property. A enum — see DistanceModelType. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.distanceModel = 'inverse';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel`
(max-distance this)
Property.
A double. The default is 10000, and non-positive values are not
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.maxDistance = 10000;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance
Property. A double. The default is 10000, and non-positive values are not `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.maxDistance = 10000;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance`
(orientation-x this)
Property.
An audio.AudioParam
whose value is the X component of the direction
which the audio source is facing, in 3D Cartesian coordinate
`var orientationX = PannerNode.orientationX;
PannerNode.orientationX.value = newOrientationX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX
Property. An `audio.AudioParam` whose value is the X component of the direction which the audio source is facing, in 3D Cartesian coordinate `var orientationX = PannerNode.orientationX; PannerNode.orientationX.value = newOrientationX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX`
(orientation-y this)
Property.
An audio.AudioParam
whose value is the Y component of the direction
audio source is facing, in 3D Cartesian coordinate space.
`var orientationY = PannerNode.orientationY;
PannerNode.orientationY.value = newOrientationY;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY
Property. An `audio.AudioParam` whose value is the Y component of the direction audio source is facing, in 3D Cartesian coordinate space. `var orientationY = PannerNode.orientationY; PannerNode.orientationY.value = newOrientationY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY`
(orientation-z this)
Property.
An audio.AudioParam
whose value is the Z component of the direction
audio source is facing, in 3D Cartesian coordinate space.
`var orientationZ = PannerNode.orientationZ;
PannerNode.orientationZ.value = newOrientationZ;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ
Property. An `audio.AudioParam` whose value is the Z component of the direction audio source is facing, in 3D Cartesian coordinate space. `var orientationZ = PannerNode.orientationZ; PannerNode.orientationZ.value = newOrientationZ;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ`
(panning-model this)
Property.
A enum — see PanningModelType.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.panningModel = 'HRTF';
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel
Property. A enum — see PanningModelType. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.panningModel = 'HRTF';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel`
(position-x this)
Property.
An audio.AudioParam
whose value is the X coordinate of the
source's position, in 3D Cartesian coordinates. The default value
0.
`var positionX = PannerNode.positionX;
PannerNode.positionX.value = newPositionX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX
Property. An `audio.AudioParam` whose value is the X coordinate of the source's position, in 3D Cartesian coordinates. The default value 0. `var positionX = PannerNode.positionX; PannerNode.positionX.value = newPositionX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX`
(position-y this)
Property.
An audio.AudioParam
whose value is the Y coordinate of the
source's position, in 3D Cartesian coordinates.
`var positionY = PannerNode.positionY;
PannerNode.positionY.value = newPositionY;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY
Property. An `audio.AudioParam` whose value is the Y coordinate of the source's position, in 3D Cartesian coordinates. `var positionY = PannerNode.positionY; PannerNode.positionY.value = newPositionY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY`
(position-z this)
Property.
An audio.AudioParam
whose value is the Z coordinate of the
source's position, in 3D Cartesian coordinates.
`var positionZ = PannerNode.positionZ;
PannerNode.positionZ.value = newPositionZ;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ
Property. An `audio.AudioParam` whose value is the Z coordinate of the source's position, in 3D Cartesian coordinates. `var positionZ = PannerNode.positionZ; PannerNode.positionZ.value = newPositionZ;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ`
(ref-distance this)
Property.
A non-negative number. If the value is set to less than 0, a is thrown.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.refDistance = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance
Property. A non-negative number. If the value is set to less than 0, a is thrown. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.refDistance = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance`
(rolloff-factor this)
Property.
A number whose range depends on the web.distanceModel
of the
as follows (negative values are not allowed):
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.rolloffFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor
Property. A number whose range depends on the `web.distanceModel` of the as follows (negative values are not allowed): `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.rolloffFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor`
(set-cone-inner-angle! this val)
Property.
A double.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneInnerAngle = 360;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle
Property. A double. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneInnerAngle = 360;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle`
(set-cone-outer-angle! this val)
Property.
A double.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterAngle = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle
Property. A double. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterAngle = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle`
(set-cone-outer-gain! this val)
Property.
The coneOuterGain property of the web.PannerNode
interface
a double value, describing the amount of volume reduction outside
cone, defined by the web.coneOuterAngle
attribute.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterGain = 0;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain
Property. The coneOuterGain property of the `web.PannerNode` interface a double value, describing the amount of volume reduction outside cone, defined by the `web.coneOuterAngle` attribute. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.coneOuterGain = 0;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain`
(set-distance-model! this val)
Property.
A enum — see DistanceModelType.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.distanceModel = 'inverse';
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel
Property. A enum — see DistanceModelType. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.distanceModel = 'inverse';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel`
(set-max-distance! this val)
Property.
A double. The default is 10000, and non-positive values are not
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.maxDistance = 10000;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance
Property. A double. The default is 10000, and non-positive values are not `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.maxDistance = 10000;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance`
(set-orientation this & args)
Method.
Void.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setOrientation(1,0,0);
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation
Method. Void. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setOrientation(1,0,0);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation`
(set-orientation-x! this val)
Property.
An audio.AudioParam
whose value is the X component of the direction
which the audio source is facing, in 3D Cartesian coordinate
`var orientationX = PannerNode.orientationX;
PannerNode.orientationX.value = newOrientationX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX
Property. An `audio.AudioParam` whose value is the X component of the direction which the audio source is facing, in 3D Cartesian coordinate `var orientationX = PannerNode.orientationX; PannerNode.orientationX.value = newOrientationX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX`
(set-orientation-y! this val)
Property.
An audio.AudioParam
whose value is the Y component of the direction
audio source is facing, in 3D Cartesian coordinate space.
`var orientationY = PannerNode.orientationY;
PannerNode.orientationY.value = newOrientationY;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY
Property. An `audio.AudioParam` whose value is the Y component of the direction audio source is facing, in 3D Cartesian coordinate space. `var orientationY = PannerNode.orientationY; PannerNode.orientationY.value = newOrientationY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY`
(set-orientation-z! this val)
Property.
An audio.AudioParam
whose value is the Z component of the direction
audio source is facing, in 3D Cartesian coordinate space.
`var orientationZ = PannerNode.orientationZ;
PannerNode.orientationZ.value = newOrientationZ;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ
Property. An `audio.AudioParam` whose value is the Z component of the direction audio source is facing, in 3D Cartesian coordinate space. `var orientationZ = PannerNode.orientationZ; PannerNode.orientationZ.value = newOrientationZ;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ`
(set-panning-model! this val)
Property.
A enum — see PanningModelType.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.panningModel = 'HRTF';
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel
Property. A enum — see PanningModelType. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.panningModel = 'HRTF';` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel`
(set-position this & args)
Method.
Void.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setPosition(0,0,0);
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition
Method. Void. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setPosition(0,0,0);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition`
(set-position-x! this val)
Property.
An audio.AudioParam
whose value is the X coordinate of the
source's position, in 3D Cartesian coordinates. The default value
0.
`var positionX = PannerNode.positionX;
PannerNode.positionX.value = newPositionX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX
Property. An `audio.AudioParam` whose value is the X coordinate of the source's position, in 3D Cartesian coordinates. The default value 0. `var positionX = PannerNode.positionX; PannerNode.positionX.value = newPositionX;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX`
(set-position-y! this val)
Property.
An audio.AudioParam
whose value is the Y coordinate of the
source's position, in 3D Cartesian coordinates.
`var positionY = PannerNode.positionY;
PannerNode.positionY.value = newPositionY;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY
Property. An `audio.AudioParam` whose value is the Y coordinate of the source's position, in 3D Cartesian coordinates. `var positionY = PannerNode.positionY; PannerNode.positionY.value = newPositionY;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY`
(set-position-z! this val)
Property.
An audio.AudioParam
whose value is the Z coordinate of the
source's position, in 3D Cartesian coordinates.
`var positionZ = PannerNode.positionZ;
PannerNode.positionZ.value = newPositionZ;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ
Property. An `audio.AudioParam` whose value is the Z coordinate of the source's position, in 3D Cartesian coordinates. `var positionZ = PannerNode.positionZ; PannerNode.positionZ.value = newPositionZ;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ`
(set-ref-distance! this val)
Property.
A non-negative number. If the value is set to less than 0, a is thrown.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.refDistance = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance
Property. A non-negative number. If the value is set to less than 0, a is thrown. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.refDistance = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance`
(set-rolloff-factor! this val)
Property.
A number whose range depends on the web.distanceModel
of the
as follows (negative values are not allowed):
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.rolloffFactor = 1;
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor
Property. A number whose range depends on the `web.distanceModel` of the as follows (negative values are not allowed): `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.rolloffFactor = 1;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor`
(set-velocity this & args)
Method.
The setVelocity() method of the web.PannerNode
Interface defines
velocity vector of the audio source — how fast it is moving and
what direction.
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setVelocity(0,0,17);
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity
Method. The setVelocity() method of the `web.PannerNode` Interface defines velocity vector of the audio source — how fast it is moving and what direction. `var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.setVelocity(0,0,17);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close