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.audio.PannerNode
interface
a double value, describing the amount of volume reduction outside
cone, defined by the 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.audio.PannerNode` interface a double value, describing the amount of volume reduction outside cone, defined by the `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 & args)
Constructor.
The PannerNode() constructor of the Web Audio API creates a new web.audio.PannerNode
object instance.
Inherits parameters from the web.audio.AudioNodeOptions
dictionary.
\tcontext
\tA web.audio.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 PannerNode.panningModel
you want the web.audio.PannerNode
to have (the default is equalpower.)
\t\tdistanceModel: The PannerNode.distanceModel
you want the web.audio.PannerNode
to have (the default is inverse.)
\t\tpositionX: The PannerNode.positionX
you want the web.audio.PannerNode
to have (the default is 0.)
\t\tpositionY: The PannerNode.positionY
you want the web.audio.PannerNode
to have (the default is 0.)
\t\tpositionZ: The PannerNode.positionZ
you want the web.audio.PannerNode
to have (the default is 0.)
\t\torientationX: The PannerNode.orientationX
you want the web.audio.PannerNode
to have (the default is 1.)
\t\torientationY: The PannerNode.orientationY
you want the web.audio.PannerNode
to have (the default is 0.)
\t\torientationZ: The PannerNode.orientationZ
you want the web.audio.PannerNode
to have (the default is 0.)
\t\trefDistance: The PannerNode.refDistance
you want the web.audio.PannerNode
to have. The default is 1, and negative values are not allowed.
\t\tmaxDistance: The PannerNode.maxDistance
you want the web.audio.PannerNode
to have. The default is 10000, and non-positive values are not allowed.
\t\trollOffFactor: The PannerNode.rollOffFactor
you want the web.audio.PannerNode
to have. The default is 1, and negative values are not allowed.
\t\tconeInnerAngle: The PannerNode.coneInnerAngle
you want the web.audio.PannerNode
to have (the default is 360.)
\t\tconeOuterAngle: The PannerNode.coneOuterAngle
you want the web.audio.PannerNode
to have (the default is 360.)
\t\tconeOuterGain: The PannerNode.coneOuterGain
you want the web.audio.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.audio.PannerNode` object instance. Inherits parameters from the `web.audio.AudioNodeOptions` dictionary. \tcontext \tA `web.audio.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 `PannerNode.panningModel` you want the `web.audio.PannerNode` to have (the default is equalpower.) \t\tdistanceModel: The `PannerNode.distanceModel` you want the `web.audio.PannerNode` to have (the default is inverse.) \t\tpositionX: The `PannerNode.positionX` you want the `web.audio.PannerNode` to have (the default is 0.) \t\tpositionY: The `PannerNode.positionY` you want the `web.audio.PannerNode` to have (the default is 0.) \t\tpositionZ: The `PannerNode.positionZ` you want the `web.audio.PannerNode` to have (the default is 0.) \t\torientationX: The `PannerNode.orientationX` you want the `web.audio.PannerNode` to have (the default is 1.) \t\torientationY: The `PannerNode.orientationY` you want the `web.audio.PannerNode` to have (the default is 0.) \t\torientationZ: The `PannerNode.orientationZ` you want the `web.audio.PannerNode` to have (the default is 0.) \t\trefDistance: The `PannerNode.refDistance` you want the `web.audio.PannerNode` to have. The default is 1, and negative values are not allowed. \t\tmaxDistance: The `PannerNode.maxDistance` you want the `web.audio.PannerNode` to have. The default is 10000, and non-positive values are not allowed. \t\trollOffFactor: The `PannerNode.rollOffFactor` you want the `web.audio.PannerNode` to have. The default is 1, and negative values are not allowed. \t\tconeInnerAngle: The `PannerNode.coneInnerAngle` you want the `web.audio.PannerNode` to have (the default is 360.) \t\tconeOuterAngle: The `PannerNode.coneOuterAngle` you want the `web.audio.PannerNode` to have (the default is 360.) \t\tconeOuterGain: The `PannerNode.coneOuterGain` you want the `web.audio.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 web.audio.AudioParam
whose value is the X component of the
in 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 `web.audio.AudioParam` whose value is the X component of the in 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 web.audio.AudioParam
whose value is the Y component of the
the 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 `web.audio.AudioParam` whose value is the Y component of the the 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 web.audio.AudioParam
whose value is the Z component of the
the 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 `web.audio.AudioParam` whose value is the Z component of the the 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 web.audio.AudioParam
whose value is the X coordinate of
audio source's position, in 3D Cartesian coordinates. The default
is 0.
`var positionX = PannerNode.positionX;
PannerNode.positionX.value = newPositionX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX
Property. An `web.audio.AudioParam` whose value is the X coordinate of audio source's position, in 3D Cartesian coordinates. The default is 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 web.audio.AudioParam
whose value is the Y coordinate of
audio 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 `web.audio.AudioParam` whose value is the Y coordinate of audio 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 web.audio.AudioParam
whose value is the Z coordinate of
audio 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 `web.audio.AudioParam` whose value is the Z coordinate of audio 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 distanceModel
of the panner
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 `distanceModel` of the panner 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.audio.PannerNode
interface
a double value, describing the amount of volume reduction outside
cone, defined by the 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.audio.PannerNode` interface a double value, describing the amount of volume reduction outside cone, defined by the `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 web.audio.AudioParam
whose value is the X component of the
in 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 `web.audio.AudioParam` whose value is the X component of the in 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 web.audio.AudioParam
whose value is the Y component of the
the 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 `web.audio.AudioParam` whose value is the Y component of the the 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 web.audio.AudioParam
whose value is the Z component of the
the 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 `web.audio.AudioParam` whose value is the Z component of the the 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 web.audio.AudioParam
whose value is the X coordinate of
audio source's position, in 3D Cartesian coordinates. The default
is 0.
`var positionX = PannerNode.positionX;
PannerNode.positionX.value = newPositionX;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX
Property. An `web.audio.AudioParam` whose value is the X coordinate of audio source's position, in 3D Cartesian coordinates. The default is 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 web.audio.AudioParam
whose value is the Y coordinate of
audio 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 `web.audio.AudioParam` whose value is the Y coordinate of audio 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 web.audio.AudioParam
whose value is the Z coordinate of
audio 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 `web.audio.AudioParam` whose value is the Z coordinate of audio 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 distanceModel
of the panner
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 `distanceModel` of the panner 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.
[Obsolute]
The setVelocity() method of the web.audio.PannerNode
Interface
the velocity vector of the audio source — how fast it is moving
in 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. [Obsolute] The setVelocity() method of the `web.audio.PannerNode` Interface the velocity vector of the audio source — how fast it is moving in 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