Directivity Extension
Version 47 (Nils Peters, 06/02/2009 05:07 pm)
| 1 | 1 | h1. Directivity Extension |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 41 | Nils Peters | * to describe radiation pattern of virtual sound sources |
| 4 | 41 | Nils Peters | |
| 5 | 1 | * Orientation of entity (Yaw, Pitch, Roll) |
|
| 6 | 1 | * Directivity model ...... there are different models out there, what might be the best? |
|
| 7 | 1 | o AudioTwist |
|
| 8 | 1 | o Spatialisateur (aperture) |
|
| 9 | 1 | o Space Unit Generator |
|
| 10 | 6 | Nils Peters | o openAL, directX |
| 11 | 1 | o X3D (ellipsoids) |
|
| 12 | 1 | o CATT-Acoustics (SD0, SD1, SD2 file format) |
|
| 13 | 1 | o Common Loudspeaker File Format (CLF) |
|
| 14 | 2 | Nils Peters | |
| 15 | 22 | Nils Peters | h1. Review |
| 16 | 2 | Nils Peters | |
| 17 | 31 | Nils Peters | h2. [[Spatialisateur]] |
| 18 | 31 | Nils Peters | |
| 19 | 39 | Nils Peters | not written yet |
| 20 | 39 | Nils Peters | |
| 21 | 31 | Nils Peters | h2. [[Space Unit Generator]] |
| 22 | 41 | Nils Peters | |
| 23 | 41 | Nils Peters | Frequency independent source radiation pattern is defined through the @back@ parameter which sets the radiation gain between 0 and 1. in the opposite direction. The result is a radiation pattern in cardioid shape form. |
| 24 | 31 | Nils Peters | |
| 25 | 31 | Nils Peters | !SUG.gif! |
| 26 | 1 | ||
| 27 | 40 | Nils Peters | h2. [[jmod.sur.vimic~|ViMiC]] |
| 28 | 32 | Nils Peters | |
| 29 | 35 | Nils Peters | The source directivity can be modeled through a frequency independent gain factor between 0 and 1. for each radiation angle to a 1º accuracy. |
| 30 | 35 | Nils Peters | |
| 31 | 32 | Nils Peters | !ViMiC.gif! |
| 32 | 1 | ||
| 33 | 1 | h2. AudioTwist |
|
| 34 | 39 | Nils Peters | |
| 35 | 39 | Nils Peters | not written yet |
| 36 | 1 | ||
| 37 | 36 | Nils Peters | h2. "OpenAL":http://connect.creativelabs.com/openal/default.aspx |
| 38 | 1 | ||
| 39 | 36 | Nils Peters | ??ability to simulate realistic directivity characteristics by either *specifying parametric filtering associated to radiation angles*, or *triplets of angle, frequency and attenuation*.?? |
| 40 | 36 | Nils Peters | (Jean Marc Jot, "Scene Description Model and Rendering Engine for Interactive Virtual Acoustics", 120th AES Convention) |
| 41 | 31 | Nils Peters | |
| 42 | 36 | Nils Peters | h2. "X3D":http://libx3d.sourceforge.net/ISO-IEC-19775-X3DAbstractSpecification/index.html Sound Node |
| 43 | 1 | ||
| 44 | 36 | Nils Peters | * Inner ellipsoid defines a volume of space in which the maximum level of the sound is audible. Within this ellipsoid, the normalized sample data is scaled by the intensity field and there is no attenuation. The inner ellipsoid is defined by extending the direction vector through the location. The @minBack@ and @minFront@ fields specify distances behind and in front of the location along the direction vector respectively. The inner ellipsoid has one of its foci at location (the second focus is implicit) and intersects the direction vector at @minBack@ and @minFront@. |
| 45 | 1 | ||
| 46 | 36 | Nils Peters | * Outer ellipsoid defines a volume of space that bounds the audibility of the sound. No sound can be heard outside of this outer ellipsoid. The outer ellipsoid is defined by extending the direction vector through the location. The @maxBack@ and @maxFront@ fields specify distances behind and in front of the location along the direction vector respectively. The outer ellipsoid has one of its foci at location (the second focus is implicit) and intersects the direction vector at @maxBack@ and @maxFront@. |
| 47 | 36 | Nils Peters | * The @minFront@, @maxFront@, @minBack@, and @maxBack@ fields are defined in local coordinates, and are ≥ zero. |
| 48 | 36 | Nils Peters | * @minBack@ ≤ @maxBack@ |
| 49 | 36 | Nils Peters | * @minFront@ ≤ @maxFront@ |
| 50 | 36 | Nils Peters | * Parameters are specified in the local coordinate system but the ellipsoids' geometry is affected by ancestors' transformations. |
| 51 | 36 | Nils Peters | * Between the two ellipsoids, there shall be a *linear attenuation ramp* in loudness, from 0 dB at the minimum ellipsoid to -20 dB at the maximum ellipsoid: *attenuation = -20 × (d' / d")* (*d'* is the distance along the location-to-viewer vector, measured from the transformed minimum ellipsoid boundary to the viewer, and *d"* is the distance along the location-to-viewer vector from the transformed minimum ellipsoid boundary to the transformed maximum ellipsoid boundary) |
| 52 | 1 | ||
| 53 | 36 | Nils Peters | !X3D.gif! |
| 54 | 1 | ||
| 55 | 36 | Nils Peters | |
| 56 | 38 | Nils Peters | <pre> |
| 57 | 1 | Sound : X3DSoundNode { |
|
| 58 | 1 | SFVec3f [in,out] direction 0 0 1 (-∞,∞) |
|
| 59 | 36 | Nils Peters | SFFloat [in,out] intensity 1 [0,1] |
| 60 | 36 | Nils Peters | SFVec3f [in,out] location 0 0 0 (-∞,∞) |
| 61 | 36 | Nils Peters | SFFloat [in,out] maxBack 10 [0,∞) |
| 62 | 1 | SFFloat [in,out] maxFront 10 [0,∞) |
|
| 63 | 36 | Nils Peters | SFNode [in,out] metadata NULL [X3DMetadataObject] |
| 64 | 36 | Nils Peters | SFFloat [in,out] minBack 1 [0,∞) |
| 65 | 36 | Nils Peters | SFFloat [in,out] minFront 1 [0,∞) |
| 66 | 36 | Nils Peters | SFFloat [in,out] priority 0 [0,1] |
| 67 | 36 | Nils Peters | SFNode [in,out] source NULL [X3DSoundSourceNode] |
| 68 | 36 | Nils Peters | SFBool [] spatialize TRUE |
| 69 | 38 | Nils Peters | }</pre> |
| 70 | 36 | Nils Peters | |
| 71 | 36 | Nils Peters | |
| 72 | 36 | Nils Peters | |
| 73 | 36 | Nils Peters | h2. "DirectX Audio / XACT":http://msdn.microsoft.com/en-us/library/bb147394(VS.85).aspx AUDIO_CONE |
| 74 | 36 | Nils Peters | |
| 75 | 36 | Nils Peters | * concentric cones |
| 76 | 36 | Nils Peters | |
| 77 | 36 | Nils Peters | * at any angle outside the outer cone, the volume is attenuated. The outside cone volume level is expressed as a linear amplitude scaler: 1.0f represents no attenuation applied to the original signal, 0.5f denotes an attenuation of 6dB, and 0.0f results in silence. Amplification (volume > 1.0f) is also allowed and is not clamped. The valid volume range is actually 0.0f to 2.0f. |
| 78 | 36 | Nils Peters | |
| 79 | 36 | Nils Peters | * Between the inner and outer cones is a zone of transition from the inside volume to the outside volume. The volume approaches the cone's outer volume as the angle increases. |
| 80 | 36 | Nils Peters | |
| 81 | 36 | Nils Peters | * Cones can affect parameters other than volume. Low pass filter and reverb send level may also be affected. For example, with a cone on the listener, one can specify all sounds behind the listener get a bit muffled and have slightly higher reverb-to-direct ratio content. |
| 82 | 36 | Nils Peters | |
| 83 | 36 | Nils Peters | !DirectX-Audio.gif! |
| 84 | 36 | Nils Peters | |
| 85 | 36 | Nils Peters | h3. API X3DAUDIO_CONE |
| 86 | 36 | Nils Peters | |
| 87 | 36 | Nils Peters | Specifies directionality for a single-channel non-LFE emitter by scaling DSP behavior with respect to the emitter's orientation. |
| 88 | 36 | Nils Peters | |
| 89 | 36 | Nils Peters | |
| 90 | 36 | Nils Peters | <pre> |
| 91 | 36 | Nils Peters | typedef struct X3DAUDIO_CONE { |
| 92 | 36 | Nils Peters | FLOAT32 InnerAngle; |
| 93 | 36 | Nils Peters | FLOAT32 OuterAngle; |
| 94 | 36 | Nils Peters | FLOAT32 InnerVolume; |
| 95 | 36 | Nils Peters | FLOAT32 OuterVolume; |
| 96 | 36 | Nils Peters | FLOAT32 InnerLPF; |
| 97 | 36 | Nils Peters | FLOAT32 OuterLPF; |
| 98 | 36 | Nils Peters | FLOAT32 InnerReverb; |
| 99 | 36 | Nils Peters | FLOAT32 OuterReverb; |
| 100 | 37 | Nils Peters | } X3DAUDIO_CONE, *LPX3DAUDIO_CONE; |
| 101 | 36 | Nils Peters | </pre> |
| 102 | 36 | Nils Peters | |
| 103 | 36 | Nils Peters | Members |
| 104 | 36 | Nils Peters | |
| 105 | 36 | Nils Peters | @InnerAngle@: Inner cone angle in radians. This value must be within 0.0f to X3DAUDIO_2PI. |
| 106 | 36 | Nils Peters | @OuterAngle@: Outer cone angle in radians. This value must be within InnerAngle to X3DAUDIO_2PI. |
| 107 | 36 | Nils Peters | @InnerVolume@: Volume scaler on/within inner cone. This value must be within 0.0f to 2.0f. |
| 108 | 36 | Nils Peters | @OuterVolume@: Volume scaler on/beyond outer cone. This value must be within 0.0f to 2.0f. |
| 109 | 36 | Nils Peters | @InnerLPF@: LPF direct-path or reverb-path coefficient scaler on/within inner cone. This value is only used for LPF calculations and must be within 0.0f to 1.0f. |
| 110 | 36 | Nils Peters | @OuterLPF@: LPF direct-path or reverb-path coefficient scaler on or beyond outer cone. This value is only used for LPF calculations and must be within 0.0f to 1.0f. |
| 111 | 36 | Nils Peters | @InnerReverb@: Reverb send level scaler on or within inner cone. This must be within 0.0f to 2.0f. |
| 112 | 36 | Nils Peters | @OuterReverb@: Reverb send level scaler on/beyond outer cone. This must be within 0.0f to 2.0f. |
| 113 | 36 | Nils Peters | |
| 114 | 47 | Nils Peters | h2. "CATT":http://www.catt.se SD0/SD1/SD2/SD3 format |
| 115 | 1 | ||
| 116 | 47 | Nils Peters | * SD1 based on interpolation from measured 10º full space data: |
| 117 | 45 | Nils Peters | * A reference direction is described as "front" and the spatial changes of the relative sound pressure level are specified along semicircle slices |
| 118 | 45 | Nils Peters | * The data of each of these slices begin at the reference direction (0°) and are stated in 10° steps on an angle sector of 180°. |
| 119 | 45 | Nils Peters | * This results in 19 level readings in dB noting that the first has to be 0 dB as reference point. |
| 120 | 45 | Nils Peters | * 36 semicircle slices are to specify for spatial presentation. They all have to cut not only at the reference point "front", but also at the opposite point "back" showing the same level readings. |
| 121 | 45 | Nils Peters | * The count direction of the 36 semicircle slices begins vertically above the sound source ("Top") and looking in reference direction continues counterclockwise by 10° steps (mathematically positive). [adapted from "here":http://www.ptb.de/en/org/1/17/173/richtchar.htm] |
| 122 | 45 | Nils Peters | |
| 123 | 1 | !SD1.gif! |
|
| 124 | 1 | ||
| 125 | 47 | Nils Peters | *legacy format: SD0: based on interpolation from 15º horizontal and vertical polar diagrams |
| 126 | 47 | Nils Peters | *successor formats: |
| 127 | 47 | Nils Peters | o SD2: supports loudspeaker array modeling and handles extended near-fields ["more":http://www.catt.se/download_area.htm#DDI_Info] |
| 128 | 47 | Nils Peters | o SD3: 5º full space data optionally with phase |
| 129 | 42 | Nils Peters | |
| 130 | 44 | Nils Peters | h2. "Common Loudspeaker File Format":http://www.clfgroup.org/ (CLF) |
| 131 | 42 | Nils Peters | |
| 132 | 42 | Nils Peters | * Open file format to describe loudspeaker performance and polar data |
| 133 | 42 | Nils Peters | * CLF is defined in two parts, a text-based format used for data input and editing, and a binary format for data distribution. |
| 134 | 42 | Nils Peters | * "Tools":http://www.clfgroup.org/author.htm are available for data editing, conversion from text to binary format and viewing binary data. |
| 135 | 43 | Nils Peters | * CLF 1.0 supports two data resolutions. A CLF Type 1 file contains Octave/10 degree data, a CLF Type 2 file contains Third Octave/5 degree data. |
| 136 | 42 | Nils Peters | |
| 137 | 36 | Nils Peters | h1. Files |