| 1 |
<?php |
| 2 |
plugin_header(); |
| 3 |
|
| 4 |
$s = (strpos($PAGE, '_stereo') > 0); |
| 5 |
?> |
| 6 |
|
| 7 |
<p> |
| 8 |
This plugin allows to simulate impulse response of any modelled room or space. |
| 9 |
The basic principle is based on generating of unit audio impulse and then capturing all |
| 10 |
it's reflections from environment by special capturing objects that simulate microphone capsules. |
| 11 |
</p> |
| 12 |
<p> |
| 13 |
So, in fact, this algorithm is a kind of raytracing algorithm but instead of single rays it |
| 14 |
performs tracing of ray groups. This allows to simulate large spaces without significantly loose |
| 15 |
in quality and precision. |
| 16 |
</p> |
| 17 |
<p>The typical simulation workflow is performed in the following way:</p> |
| 18 |
<ul> |
| 19 |
<li>Prepare a room model in <a href="https://en.wikipedia.org/wiki/Wavefront_.obj_file">Wavefront OBJ file format</a>.</li> |
| 20 |
<li>Load room model in the plugin's main window.</li> |
| 21 |
<li>Edit environment settings like: audio sources, audio captures, objects' spatial parameters and material properties.</li> |
| 22 |
<li>Launch the rendering process which will simulate physical processes and generate the impulse response of the room.</li> |
| 23 |
<li>Obtain final samples after the rendeing is complete.</li> |
| 24 |
</ul> |
| 25 |
<p>Additionally, generated samples can be immediately applied to the input signal as a convolution. |
| 26 |
This allows to understand the final result with minimum number of actions.</p> |
| 27 |
|
| 28 |
<p>The simulation algorithm relays on the following physical model.</p> |
| 29 |
|
| 30 |
<?php out_image('graph/roombuilder-model', 'The physical model of Room Builder simulations') ?> |
| 31 |
|
| 32 |
<p>The sound source emits unit audio impulse which consists of infinite number of audio rays.</p> |
| 33 |
<p>Each ray has it's own characteristics: the velocity vector v<sub>falling</sub> and the amplitude A<sub>falling</sub>.</p> |
| 34 |
<p> |
| 35 |
This ray reaches the border of two different materials at the the α<sub>falling</sub> angle to the border's |
| 36 |
normal vector n<sub>face</sub>. |
| 37 |
</p> |
| 38 |
<p>Then, the ray is split into two rays: reflected and refracted.</p> |
| 39 |
<p> |
| 40 |
The reflected ray has the same velocity value but the negated projection to the face normal. This, still, keeps |
| 41 |
the rule that the reflected angle is similar to the falling angle. |
| 42 |
</p> |
| 43 |
<p> |
| 44 |
The refracted ray has the altered velocity value multiplied by the relative permeability of the material n. |
| 45 |
Also, if n is not equal to 1, the refracted angle α<sub>refracted</sub> is not equal to α<sub>falling</sub>. |
| 46 |
</p> |
| 47 |
<p> |
| 48 |
Additionally, the physical model considers that crossing of the border yields to some energy losses K<sub>absorption</sub> (in percents) |
| 49 |
and that fact that each material has it's own transparency factor K<sub>transparency</sub> (in percents). |
| 50 |
</p> |
| 51 |
<p>All these rules can be written using the following equations:</p> |
| 52 |
|
| 53 |
<?php out_image('graph/roombuilder-equations', 'The physical equations of Room Builder simulations') ?> |
| 54 |
|
| 55 |
<p> |
| 56 |
To simulate sharpness of the surface, additional coefficients K<sub>diffusion</sub> and |
| 57 |
K<sub>dispersion</sub> are available, as shown on the image above. |
| 58 |
</p> |
| 59 |
<p> |
| 60 |
To simulate anisotropy features of the material, different coefficients K<sub>absorption</sub>, |
| 61 |
K<sub>transparency</sub>, K<sub>diffusion</sub>, K<sub>dispersion</sub> are available for both cases: |
| 62 |
when audio ray enters the material and when audio ray leaves the material. |
| 63 |
</p> |
| 64 |
|
| 65 |
<p><b>Controls</b>:</p> |
| 66 |
<ul> |
| 67 |
<li><b>FFT frame</b> - the maximum size of the FFT frame used for convolvers.</li> |
| 68 |
<li><b>IR equalizer</b> - shows wet signal equalization overlay.</li> |
| 69 |
</ul> |
| 70 |
|
| 71 |
<p><b>'Room browser' section:</b></p> |
| 72 |
<ul> |
| 73 |
<li><b>Room orientation</b> - set the orientation of the 3D model. This is useful for |
| 74 |
cases when the model is exported in different coordinate system.</li> |
| 75 |
<li><b>Sz X</b> - additional 3D scene scaling coefficient by the X axis.</li> |
| 76 |
<li><b>Sz Y</b> - additional 3D scene scaling coefficient by the Y axis.</li> |
| 77 |
<li><b>Sz z</b> - additional 3D scene scaling coefficient by the Z axis.</li> |
| 78 |
<li><b>3D model</b> - button for loading 3D scene.</li> |
| 79 |
<li><b>Camera</b> - set of parameters for manipulating camera position:</li> |
| 80 |
<ul> |
| 81 |
<li><b>X Axis</b> - position of the camera relative to the origin by the X axis.</li> |
| 82 |
<li><b>Y Axis</b> - position of the camera relative to the origin by the Y axis.</li> |
| 83 |
<li><b>Z Axis</b> - position of the camera relative to the origin by the Z axis.</li> |
| 84 |
<li><b>Yaw</b> - camera's yaw rotation angle.</li> |
| 85 |
<li><b>Pitch</b> - camera's pitch rotation angle.</li> |
| 86 |
</ul> |
| 87 |
</ul> |
| 88 |
|
| 89 |
<p><b>'Sample' section:</b></p> |
| 90 |
<ul> |
| 91 |
<li><b>Export</b> - button for saving the rendered audio sample to the file.</li> |
| 92 |
<li><b>Reverse</b> - allows to reverse sample in time domain.</li> |
| 93 |
<li><b>Head cut</b> - cut amount of milliseconds from the beginning of the sample, can be used to remove early reflections of reverb.</li> |
| 94 |
<li><b>Tail cut</b> - cut amount of milliseconds from the end of the sample, can be used to remove large reverberation tail.</li> |
| 95 |
<li><b>Fade in</b> - adds additional fading at the beginning of the sample.</li> |
| 96 |
<li><b>Fade out</b> - adds additional fading at the end of the sample.</li> |
| 97 |
<li><b>Listen</b> - this button allows to preview contents of the sample.</li> |
| 98 |
<li><b>Stop</b> - this button allows to stop previewing contents of the sample.</li> |
| 99 |
<li><b>Makeup</b> - additional fader to control the gain of the rendered impulse response.</li> |
| 100 |
</ul> |
| 101 |
|
| 102 |
<p><b>'Source editor' section:</b></p> |
| 103 |
<ul> |
| 104 |
<li><b>Source</b> - the selector of the current audio source.</li> |
| 105 |
<li><b>Enabled</b> - the button that enables the audio source.</li> |
| 106 |
<li><b>Shape</b> - allows to select the shape of the wave front generated by the audio source.</li> |
| 107 |
<li><b>Phase</b> - allows to invert the phase of the audio source.</li> |
| 108 |
<li><b>X Axis</b> - position of the audio source relative to the origin by the X axis.</li> |
| 109 |
<li><b>Y Asis</b> - position of the audio source relative to the origin by the Y axis.</li> |
| 110 |
<li><b>Z Axis</b> - position of the audio source relative to the origin by the Z axis.</li> |
| 111 |
<li><b>Yaw</b> - yaw rotation angle of the audio source.</li> |
| 112 |
<li><b>Pitch</b> - pitch rotation angle of the audio source.</li> |
| 113 |
<li><b>Roll</b> - roll rotation angle of the audio source.</li> |
| 114 |
<li><b>Hue</b> - the hue of the audio source color in a Room browser view.</li> |
| 115 |
<li><b>Angle</b> - The additional diffuse angle of the audio source.</li> |
| 116 |
<li><b>Size</b> - The size of the audio source.</li> |
| 117 |
<li><b>Height</b> - Additional height of the audio source.</li> |
| 118 |
<li><b>Curvature</b> - Additional curvature of the audio source.</li> |
| 119 |
</ul> |
| 120 |
|
| 121 |
<p><b>'Capture editor' section:</b></p> |
| 122 |
<ul> |
| 123 |
<li><b>Capture</b> - the selector of the current audio capture.</li> |
| 124 |
<li><b>Enabled</b> - the button that enables the audio capture.</li> |
| 125 |
<li><b>Mode</b> - the microphone setting mode for audio capture, available configurations are:</li> |
| 126 |
<ul> |
| 127 |
<li><b>Mono</b> - mono capsule.</li> |
| 128 |
<li><b>XY</b> - two capsules pointing at 90 degrees one to another by default.</li> |
| 129 |
<li><b>AB</b> - two parallel capsules set far one from another.</li> |
| 130 |
<li><b>ORTF</b> - two capsules simulating the location of human ears.</li> |
| 131 |
<li><b>MS</b> - mid/side configuration of microphones.</li> |
| 132 |
</ul> |
| 133 |
<li><b>Reflections</b> - sets the range of reflection orders that will be captured by this audio capture. |
| 134 |
This allows to eliminate early reflections or late reflections in the rendered result. |
| 135 |
</li> |
| 136 |
<li><b>Mic. direction</b> - specifies the microphone direction:</li> |
| 137 |
<ul> |
| 138 |
<li><b>Cardioid</b></li> |
| 139 |
<li><b>Supercardioid</b></li> |
| 140 |
<li><b>Hypercardioid</b></li> |
| 141 |
<li><b>Bidirectional</b></li> |
| 142 |
<li><b>8-directional</b></li> |
| 143 |
<li><b>Omnidirectional</b></li> |
| 144 |
</ul> |
| 145 |
<li><b>Side direction</b> - specifies the side microphone direction for the <b>XY</b> mode:</li> |
| 146 |
<ul> |
| 147 |
<li><b>Cardioid</b></li> |
| 148 |
<li><b>Supercardioid</b></li> |
| 149 |
<li><b>Hypercardioid</b></li> |
| 150 |
<li><b>Bidirectional</b></li> |
| 151 |
<li><b>8-directional</b></li> |
| 152 |
<li><b>Omnidirectional</b></li> |
| 153 |
</ul> |
| 154 |
<li><b>X Axis</b> - position of the audio capture relative to the origin by the X axis.</li> |
| 155 |
<li><b>Y Asis</b> - position of the audio capture relative to the origin by the Y axis.</li> |
| 156 |
<li><b>Z Axis</b> - position of the audio capture relative to the origin by the Z axis.</li> |
| 157 |
<li><b>Yaw</b> - yaw rotation angle of the audio capture.</li> |
| 158 |
<li><b>Pitch</b> - pitch rotation angle of the audio capture.</li> |
| 159 |
<li><b>Roll</b> - roll rotation angle of the audio capture.</li> |
| 160 |
<li><b>Hue</b> - the hue of the audio capture color in a Room browser view.</li> |
| 161 |
<li><b>Capsule</b> - the size of the microphone capsule.</li> |
| 162 |
<li><b>Distance</b> - the distance between microphones.</li> |
| 163 |
<li><b>Angle</b> - the angle between microphones.</li> |
| 164 |
</ul> |
| 165 |
|
| 166 |
<p><b>'Object editor' section:</b></p> |
| 167 |
<ul> |
| 168 |
<li><b>Object</b> - current object selector</li> |
| 169 |
<li><b>Enabled</b> - enables the object in the scene</li> |
| 170 |
<li><b>X Move</b> - position of the object relative to it's initial location by the X axis.</li> |
| 171 |
<li><b>Y Move</b> - position of the object relative to it's initial location by the Y axis.</li> |
| 172 |
<li><b>Z Move</b> - position of the object relative to it's initial location by the Z axis.</li> |
| 173 |
<li><b>Yaw</b> - yaw rotation angle of the object.</li> |
| 174 |
<li><b>Pitch</b> - pitch rotation angle of the object.</li> |
| 175 |
<li><b>Roll</b> - roll rotation angle of the object.</li> |
| 176 |
<li><b>XScale</b> - assitional scale factor of the object by the X axis.</li> |
| 177 |
<li><b>YScale</b> - assitional scale factor of the object by the Y axis.</li> |
| 178 |
<li><b>ZScale</b> - assitional scale factor of the object by the Z axis.</li> |
| 179 |
<li><b>Hue</b> - the hue of the object color in a Room browser view.</li> |
| 180 |
</ul> |
| 181 |
|
| 182 |
<p><b>'Material editor' section:</b></p> |
| 183 |
<ul> |
| 184 |
<li><b>Object</b> - current object selector.</li> |
| 185 |
<li><b>Enabled</b> - enables the object in the scene.</li> |
| 186 |
<li><b>Material preset</b> - allows to quickly adjust sound speed and absorption of the material.</li> |
| 187 |
<li><b>Sound speed</b> - the knob for controlling speed of the sound in the material.</li> |
| 188 |
<li><b>Absorption</b>:</li> |
| 189 |
<ul> |
| 190 |
<li><b>Out->In</b> - the absorption of material when the sound ray enters the object.</li> |
| 191 |
<li><b>Link</b> - the linkage between <b>Out->In</b> and <b>In->Out</b> parameters.</li> |
| 192 |
<li><b>In->Out</b> - the absorption of material when the sound ray leaves the object.</li> |
| 193 |
</ul> |
| 194 |
<li><b>Transparency</b>:</li> |
| 195 |
<ul> |
| 196 |
<li><b>Out->In</b> - the transparency of material when the sound ray enters the object.</li> |
| 197 |
<li><b>Link</b> - the linkage between <b>Out->In</b> and <b>In->Out</b> parameters.</li> |
| 198 |
<li><b>In->Out</b> - the transparency of material when the sound ray leaves the object.</li> |
| 199 |
</ul> |
| 200 |
<li><b>Dispersion</b>:</li> |
| 201 |
<ul> |
| 202 |
<li><b>Out->In</b> - the dispersion of material when the sound ray enters the object.</li> |
| 203 |
<li><b>Link</b> - the linkage between <b>Out->In</b> and <b>In->Out</b> parameters.</li> |
| 204 |
<li><b>In->Out</b> - the dispersion of material when the sound ray leaves the object.</li> |
| 205 |
</ul> |
| 206 |
<li><b>Diffusion</b>:</li> |
| 207 |
<ul> |
| 208 |
<li><b>Out->In</b> - the diffusion of material when the sound ray enters the object.</li> |
| 209 |
<li><b>Link</b> - the linkage between <b>Out->In</b> and <b>In->Out</b> parameters.</li> |
| 210 |
<li><b>In->Out</b> - the diffusion of material when the sound ray leaves the object.</li> |
| 211 |
</ul> |
| 212 |
</ul> |
| 213 |
|
| 214 |
<p><b>'Rendering' section:</b></p> |
| 215 |
<ul> |
| 216 |
<li><b>Status</b> - current rendering status</li> |
| 217 |
<li><b>Threads</b> - allows to select number of threads for parallel rendering</li> |
| 218 |
<li><b>Quality</b> - specifies the quality of rendering. The higher quality takes more time.</li> |
| 219 |
<li><b>Progress</b> - the indicator of the completion of the rendering process.</li> |
| 220 |
<li><b>Launch</b> - the button that starts the offline rendering process.</li> |
| 221 |
<li><b>Stop</b> - the button that terminates the offline rendering process.</li> |
| 222 |
</ul> |
| 223 |
|
| 224 |
<p><b>'Output' section:</b></p> |
| 225 |
<ul> |
| 226 |
<?php if ($s) { ?> |
| 227 |
<li><b>Dry Pan L/R</b> - the panning of the left and right channels of the dry (unprocessed) signal.</li> |
| 228 |
<?php } else { ?> |
| 229 |
<li><b>Dry Pan L/R</b> - the panning of the dry (unprocessed) signal.</li> |
| 230 |
<?php } ?> |
| 231 |
<li><b>Pre-delay</b> - amount of pre-delay added to the wet (processed) signal.</li> |
| 232 |
<li><b>Dry</b> - amount of gain applied to the dry (unprocessed) signal.</li> |
| 233 |
<li><b>Wet</b> - amount of gain additionally applied to the wet (processed) signal.</li> |
| 234 |
<li><b>Dry/Wet</b> - the balance between unprocessed (Dry) signal and mixed signal (see Dry and Wet controls).</li> |
| 235 |
<li><b>Output</b> - amount of gain additionally applied to the output signal.</li> |
| 236 |
</ul> |
| 237 |
|
| 238 |
<p><b>'Convolvers' section:</b></p> |
| 239 |
<ul> |
| 240 |
<?php if ($s) { ?> |
| 241 |
<li><b>In L/R</b> - the balance between left and right channels of input signal that will be passed to the processor</li> |
| 242 |
<?php } ?> |
| 243 |
<li><b>Pre-delay</b> - amount of pre-delay added to the processed signal. Can be used to individually control |
| 244 |
pre-delay of processed signal for each processor that can provide additional stereo effect for reverbs. |
| 245 |
</li> |
| 246 |
<li><b>Source</b> - combos allow to select file and track to use as the convolution for the processor.</li> |
| 247 |
<li><b>Mute</b> - button allows to disable the processor.</li> |
| 248 |
<li><b>Active</b> - led that indicates that the processor is active.</li> |
| 249 |
<li><b>Makeup</b> - amount of gain added to the processed signal for the processor.</li> |
| 250 |
<li><b>Out L/R</b> - the output balance of the processed signal between two channels in the stereo pair.</li> |
| 251 |
</ul> |
| 252 |
|
| 253 |
<p><b>Wet Signal Equalization</b> overlay:</p> |
| 254 |
<ul> |
| 255 |
<li><b>Enabled</b> - enables wet (processed) signal equalization.</li> |
| 256 |
<li><b>Stereo Split</b> - enables independent equalization of left and right channels.</li> |
| 257 |
<li><b>Low-cut</b> - sets the slope of the high-pass butterworth filter, possible slopes are 12, 24 and 36 dB/octave.</li> |
| 258 |
<li><b>Low-cut freq</b> - the cutoff frequency of the high-pass butterworth filter.</li> |
| 259 |
<li><b>Faders</b> - faders that allow to change the loudness of eight corresponding frequency bands in range of -12..+12 dB</li> |
| 260 |
<li><b>High-cut</b> - sets the slope of the low-pass butterworth filter, possible slopes are 12, 24 and 36 dB/octave.</li> |
| 261 |
<li><b>High-cut freq</b> - the cutoff frequency of the low-pass butterworth filter.</li> |
| 262 |
</ul> |