CSS property: azimuth
Description
Audio direction.
Spatial audio is an important stylistic property for aural presentation. It provides a natural way to tell several voices apart, as in real life (people rarely all stand in the same spot in a room). Stereo speakers produce a lateral sound stage. Binaural headphones or the increasingly popular 5-speaker home theater setups can generate full surround sound, and multi-speaker setups can create a true three-dimensional sound stage. VRML 2.0 also includes spatial audio, which implies that in time consumer-priced spatial audio hardware will become more widely available.
This property is most likely to be implemented by mixing the same signal into different channels at differing volumes. It might also use phase shifting, digital delay, and other such techniques to provide the illusion of a sound stage. The precise means used to achieve this effect and the number of speakers used to do so are user agent-dependent; this property merely identifies the desired end result.
Syntax
azimuth: <angle>;
azimuth: <direction> [ behind ] | behind;
azimuth: leftwards;
azimuth: rightwards;
Values
- <angle>
Position is described in terms of an angle within the range
-360deg
to360deg
. The value0deg
means directly ahead in the center of the sound stage.90deg
is to the right,180deg
behind, and270deg
(or, equivalently and more conveniently,-90deg
) to the left.- <direction>
left-side Same as 270deg
. Withbehind
,270deg
.far-left Same as 300deg
. Withbehind
,240deg
.left Same as 320deg
. Withbehind
,220deg
.center-left Same as 340deg
. Withbehind
,200deg
.center Same as 0deg
. Withbehind
,180deg
.center-right Same as 20deg
. Withbehind
,160deg
.right Same as 40deg
. Withbehind
,140deg
.far-right Same as 60deg
. Withbehind
,120deg
.right-side Same as 90deg
. Withbehind
,90deg
.- leftwards
Moves the sound to the left, relative to the current angle. More precisely, subtracts 20 degrees. Arithmetic is carried out modulo 360 degrees. Note that
leftwards
is more accurately described as "turned counter-clockwise," since it always subtracts 20 degrees, even if the inherited azimuth is already behind the listener (in which case the sound actually appears to move to the right).- rightwards
Moves the sound to the right, relative to the current angle. More precisely, adds 20 degrees. See
leftwards
for arithmetic.
Versions
Examples
h1 { azimuth: 30deg; } h1 { azimuth: far-right; } h1 { azimuth: far-right behind; } h1 { azimuth: behind; }