| 1 |
<?php |
| 2 |
plugin_header(); |
| 3 |
|
| 4 |
$sc = (strpos($PAGE, 'sc_') === 0); |
| 5 |
$m = (strpos($PAGE, '_mono') > 0) ? 'm' : 's'; |
| 6 |
$cc = ($m == 'm') ? 'mono' : 'stereo'; |
| 7 |
?> |
| 8 |
|
| 9 |
<p> |
| 10 |
This plugin introduces a multiband limiter with flexible configuration. In most cases it acts as a brick-wall limiter but |
| 11 |
there are several settings for which is acts as an compressor with extreme settings, so the output signal may exceed the limiter's threshold. |
| 12 |
It prevents input <?= ($m) ? 'mono' : 'stereo' ?>signal |
| 13 |
from raising over the specified <b>Threshold</b>. <?php if ($sc) {?> Additional sidechain inputs are provided for better use.<?php } ?> |
| 14 |
</p> |
| 15 |
<p><u>Attention:</u> this plugin implements set of limiting modes, most of them are iterative. That means that CPU load may be not stable, in other |
| 16 |
words: the more work should be done, the more CPU resources will be used. Beware from extreme settings.</p> |
| 17 |
<p>The gain reduction algorithm consists of four stages:</p> |
| 18 |
<ul> |
| 19 |
<li>Per frequency band automated level regulation.</li> |
| 20 |
<li>Per frequency band brickwall gain reduction.</li> |
| 21 |
<li>Per mix automated level regulation.</li> |
| 22 |
<li>Per mix band brickwall gain reduction.</li> |
| 23 |
</ul> |
| 24 |
<p>That means that plugin provides per frequency band limiting algorithm and post-limiting after all frequency bands become summed together.</p> |
| 25 |
<ul> |
| 26 |
<li> |
| 27 |
<b>Automated Level Regulation</b> (<b>ALR</b>) acts like a compressor with infinite ratio |
| 28 |
for purpose of estimating the smoothed gain reduction level. The gain reduction level is controlled |
| 29 |
by the envelope of the signal applied to the compressor's gain reduction curve. The smoothness of the |
| 30 |
envelope is controlled by the <b>Attack</b> and <b>Release</b> knobs in the <b>ALR</b> section. Since |
| 31 |
different signals have different envelopes with short release time, the <b>Knee</b> knob allows to adjust |
| 32 |
the threshold of the compressor. Adjusting <b>Knee</b> may give possibility to gain some additional decibels |
| 33 |
of loudness in the final result. The <b>Smooth</b> parameter allows to control the smoothness of the ALR gain curve. |
| 34 |
The lower value is, the smoother the ALR gain curve will be. The value of 0 dB means sharp knee. |
| 35 |
</li> |
| 36 |
<li> |
| 37 |
Peak cutting algorithm which searches peaks above the threshold values and applies short gain reduction patches |
| 38 |
to the signal. The form of patch is controlled by the <b>Mode</b> selector and it's length is controlled by |
| 39 |
the corresponding <b>Attack</b> and <b>Release</b> knobs. Note that <b>Lookahead</b> also affects these values: |
| 40 |
<b>Attack</b> can not be larger than <b>Lookahead</b> and <b>Release</b> can not be twice larger as <b>Lookahead</b>. |
| 41 |
Setting these values larger than allowed automatically makes them considered to be set to maximum possible values. |
| 42 |
</li> |
| 43 |
</ul> |
| 44 |
<li>Additional <b>Linear Phase</b> mode allows to split audio signal into multiple frequency bands with linear phase shift. |
| 45 |
This introduces additional latency but gives several benefits:</li> |
| 46 |
<ul> |
| 47 |
<li>Unlike classic crossovers which use IIR (Infinite Impulse Response) filters to split signal into multiple bands and shift the phase |
| 48 |
of the audio signal at band split points, the <b>Linear Phase</b> allows to use FIR (Finite Impulse Response) filters which are deprived of this. |
| 49 |
<li>Unlike most IIR filters which are designed using bilinear transform, linear phase filters allow to simulate their transfer function |
| 50 |
to look like the transfer function of analog filters, without deforming it's magnitude envelope near the nyquist frequency.</li> |
| 51 |
<li>Unlike design of classic Linkwitz-Riley filters, the design of IIR filters provides shorter transition zone of the filter.</li> |
| 52 |
</ul> |
| 53 |
|
| 54 |
<p>Simplified peak processing example is shown on the following picture:</p> |
| 55 |
<?php out_image('graph/limiter-reduction', 'Simplified peak processing example') ?> |
| 56 |
<p> |
| 57 |
Of course, the output signal does not repeat the envelope form of input signal because it's amplitude is changed |
| 58 |
smoothly, so in fact the form of output signal is more complicated. |
| 59 |
</p> |
| 60 |
<p> |
| 61 |
Currently there are three forms of patches applied to the gain curve - |
| 62 |
<b>hermite</b> (using cubic polynom for interpolation transients), <b>exponential</b> and <b>linear</b>. |
| 63 |
These forms can be explained with following picture: |
| 64 |
</p> |
| 65 |
<?php out_image('graph/limiter-patches', 'Forms of patches applied to signal') ?> |
| 66 |
<p> |
| 67 |
Gain reduction patch affects not only the peak sample, but also surrounding samples. |
| 68 |
The position and form of this interpolation is related to the peak, so there are four |
| 69 |
different variants of patch envelope - <b>thin</b>, <b>tail</b>, <b>duck</b> and <b>wide</b>. |
| 70 |
All these forms related to the peak are shown on the following picture: |
| 71 |
</p> |
| 72 |
<?php out_image('graph/limiter-envelope', 'Envelope forms of the patch') ?> |
| 73 |
<p> |
| 74 |
On this image, sloping lines mean the transition part of the patch. |
| 75 |
The flat cap in the middle before the peak is a half of attack time, the flat cap in the middle after the peak is a half of release time. |
| 76 |
Also it's obvious that different envelope forms differently affect dynamics of the signal. |
| 77 |
</p> |
| 78 |
|
| 79 |
<p><b>Controls:</b></p> |
| 80 |
<ul> |
| 81 |
<li> |
| 82 |
<b>Bypass</b> - bypass switch, when turned on (led indicator is shining), the plugin bypasses signal. |
| 83 |
</li> |
| 84 |
<li><b>Mode</b> - combo box that allows to switch between the following modes:</li> |
| 85 |
<ul> |
| 86 |
<li><b>Classic</b> - classic operating mode using IIR filters and allpass filters to compensate phase shifts.</li> |
| 87 |
<li><b>Linear Phase</b> - linear phase operating mode using FFT transform (FIR filters) to split signal into multiple bands, introduces additional latency.</li> |
| 88 |
</ul> |
| 89 |
<li><b>SC Boost</b> - enables addidional boost of the sidechain signal:</li> |
| 90 |
<ul> |
| 91 |
<li><b>None</b> - no sidechain boost is applied.</li> |
| 92 |
<li><b>Pink BT</b> - a +3db/octave sidechain boost using bilinear-transformed shelving filter.</li> |
| 93 |
<li><b>Pink MT</b> - a +3db/octave sidechain boost using matched-transformed shelving filter.</li> |
| 94 |
<li><b>Brown BT</b> - a +6db/octave sidechain boost using bilinear-transformed shelving filter.</li> |
| 95 |
<li><b>Brown MT</b> - a +6db/octave sidechain boost using matched-transformed shelving filter.</li> |
| 96 |
</ul> |
| 97 |
<li><b>Oversampling</b> - oversampling mode:</li> |
| 98 |
<ul> |
| 99 |
<li><b>None</b> - oversampling is not used.</li> |
| 100 |
<li><b>Half 2x/16 bit</b> - 2x Lanczos oversampling of Sidechain signal with 16-bit precision of output samples.</li> |
| 101 |
<li><b>Half 2x/24 bit</b> - 2x Lanczos oversampling of Sidechain signal with 24-bit precision of output samples.</li> |
| 102 |
<li><b>Half 3x/16 bit</b> - 3x Lanczos oversampling of Sidechain signal with 16-bit precision of output samples.</li> |
| 103 |
<li><b>Half 3x/24 bit</b> - 3x Lanczos oversampling of Sidechain signal with 24-bit precision of output samples.</li> |
| 104 |
<li><b>Half 4x/16 bit</b> - 4x Lanczos oversampling of Sidechain signal with 16-bit precision of output samples.</li> |
| 105 |
<li><b>Half 4x/24 bit</b> - 4x Lanczos oversampling of Sidechain signal with 24-bit precision of output samples.</li> |
| 106 |
<li><b>Half 6x/16 bit</b> - 6x Lanczos oversampling of Sidechain signal with 16-bit precision of output samples.</li> |
| 107 |
<li><b>Half 6x/24 bit</b> - 6x Lanczos oversampling of Sidechain signal with 24-bit precision of output samples.</li> |
| 108 |
<li><b>Half 8x/16 bit</b> - 8x Lanczos oversampling of Sidechain signal with 16-bit precision of output samples.</li> |
| 109 |
<li><b>Half 8x/24 bit</b> - 8x Lanczos oversampling of Sidechain signal with 24-bit precision of output samples.</li> |
| 110 |
<li><b>Full 2x/16 bit</b> - 2x Lanczos oversampling of Sidechain signal and Input signal with 16-bit precision of output samples.</li> |
| 111 |
<li><b>Full 2x/24 bit</b> - 2x Lanczos oversampling of Sidechain signal and Input signal with 24-bit precision of output samples.</li> |
| 112 |
<li><b>Full 3x/16 bit</b> - 3x Lanczos oversampling of Sidechain signal and Input signal with 16-bit precision of output samples.</li> |
| 113 |
<li><b>Full 3x/24 bit</b> - 3x Lanczos oversampling of Sidechain signal and Input signal with 24-bit precision of output samples.</li> |
| 114 |
<li><b>Full 4x/16 bit</b> - 4x Lanczos oversampling of Sidechain signal and Input signal with 16-bit precision of output samples.</li> |
| 115 |
<li><b>Full 4x/24 bit</b> - 4x Lanczos oversampling of Sidechain signal and Input signal with 24-bit precision of output samples.</li> |
| 116 |
<li><b>Full 6x/16 bit</b> - 6x Lanczos oversampling of Sidechain signal and Input signal with 16-bit precision of output samples.</li> |
| 117 |
<li><b>Full 6x/24 bit</b> - 6x Lanczos oversampling of Sidechain signal and Input signal with 24-bit precision of output samples.</li> |
| 118 |
<li><b>Full 8x/16 bit</b> - 8x Lanczos oversampling of Sidechain signal and Input signal with 16-bit precision of output samples.</li> |
| 119 |
<li><b>Full 8x/24 bit</b> - 8x Lanczos oversampling of Sidechain signal and Input signal with 24-bit precision of output samples.</li> |
| 120 |
<li><b>True Peak/16 bit</b> - Sample-rate dependent Lanczos oversampling of Sidechain signal 16-bit precision of output samples for elimination of true peaks.</li> |
| 121 |
<li><b>True Peak/32 bit</b> - Sample-rate dependent Lanczos oversampling of Sidechain signal 24-bit precision of output samples for elimination of true peaks.</li> |
| 122 |
</ul> |
| 123 |
<li><b>Dither</b> - enables some dithering noise for the specified output amplitude quantization bitness.</li> |
| 124 |
<li><b>Zoom</b> - zoom fader, allows to adjust zoom on the frequency chart.</li> |
| 125 |
<li><b>Sidechain Source</b> - allows to set the sidechain source</li> |
| 126 |
<ul> |
| 127 |
<li><b>Internal</b> - the audio inputs of plugin are used as sidechain signal.</li> |
| 128 |
<?php if ($sc) { ?> |
| 129 |
<li><b>External</b> - additional sidechain audio inputs of plugins are used as sidechain signal.</li> |
| 130 |
<?php } ?> |
| 131 |
<li><b>Link</b> - the shared memory link is used to receive sidechain signal.</li> |
| 132 |
</ul> |
| 133 |
<li><b>Pre-mix</b> - shows pre-mix control overlay.</li> |
| 134 |
<li><b>Filters</b> - enables drawing tranfer function of each sidechain filter on the spectrum graph.</li> |
| 135 |
<li><b>Link</b> - the name of shared memory link used to receive sidechain signal</li> |
| 136 |
<li><b>Zoom</b> - zoom fader, allows to adjust zoom on the frequency chart.</li> |
| 137 |
<li><b>In</b> - the input signal meter.</li> |
| 138 |
<li><b>Out</b> - the output signal meter.</li> |
| 139 |
</ul> |
| 140 |
<p><b>'Signal' section:</b></p> |
| 141 |
<ul> |
| 142 |
<li><b>Input</b> - the amount of gain applied to the input signal before processing.</li> |
| 143 |
<li><b>Output</b> - the amount of gain applied to the output signal before processing.</li> |
| 144 |
</ul> |
| 145 |
<p><b>'Analysis' section:</b></p> |
| 146 |
<ul> |
| 147 |
<li><b>FFT In</b> - enables FFT curve graph of input signal on the spectrum graph.</li> |
| 148 |
<li><b>FFT Out</b> - enables FFT curve graph of output signal on the spectrum graph.</li> |
| 149 |
<li><b>Reactivity</b> - the reactivity (smoothness) of the spectral analysis.</li> |
| 150 |
<li><b>Shift</b> - allows to adjust the overall gain of the analysis.</li> |
| 151 |
</ul> |
| 152 |
<p><b>'Limiter bands' section:</b></p> |
| 153 |
<ul> |
| 154 |
<li><b>Controls</b> - overall controls over the band:</li> |
| 155 |
<ul> |
| 156 |
<li><b>ON</b> - enables the specific band.</li> |
| 157 |
<li><b>ACT</b> - enables the limiter on the specific band and can be used for quick A/B test for the specific band.</li> |
| 158 |
<li><b>ALR</b> - enables ALR (Automatic Level Regulation) for the specific band.</li> |
| 159 |
<li><b>S</b> - enables solo mode for the specific band.</li> |
| 160 |
<li><b>M</b> - mutes the specific band.</li> |
| 161 |
</ul> |
| 162 |
<li><b>Range</b> - the knob that allows to set up the start frequency for corresponding band and view it's frequency range.</li> |
| 163 |
<li><b>ALR</b> - ALR (Automatic Level Regulation) settings for the specific band:</li> |
| 164 |
<ul> |
| 165 |
<li><b>Attack</b> - the attack time of the ALR compressor.</li> |
| 166 |
<li><b>Release</b> - the release time of the ALR compressor.</li> |
| 167 |
<li><b>Knee</b> - the knee level of the ALR compressor.</li> |
| 168 |
<li><b>Smooth</b> - the knee smoothness of the ALR compressor.</li> |
| 169 |
</ul> |
| 170 |
<li><b>Limiter</b> - limiter settings for the specific band:</li> |
| 171 |
<ul> |
| 172 |
<li><b>Preamp</b> - the pre-amplification of the sidechain signal.</li> |
| 173 |
<li><b>Mode</b> - the operating mode of the specific limiter:</li> |
| 174 |
<ul> |
| 175 |
<li><b>Herm Thin</b>, <b>Herm Wide</b>, <b>Herm Tail</b>, <b>Herm Duck</b> - hermite-interpolated cubic functions are used to apply gain reduction.</b> |
| 176 |
<li><b>Exp Thin</b>, <b>Exp Wide</b>, <b>Exp Tail</b>, <b>Exp Duck</b> - exponent-interpolated functions are used to apply gain reduction.</b> |
| 177 |
<li><b>Line Thin</b>, <b>Line Wide</b>, <b>Line Tail</b>, <b>Line Duck</b> - linear-interpolated functions are used to apply gain reduction.</b> |
| 178 |
</ul> |
| 179 |
<li><b>Boost</b> - applies corresponding to the <b>Threshold</b> gain to the band's output signal.</li> |
| 180 |
<li><b>Thresh</b> - the maximum input level of the signal allowed by limiter.</li> |
| 181 |
<li><b>Attack</b> - the attack time of the limiter. Can not be greater than Lookahead time (greater values are truncated) for some modes.</li> |
| 182 |
<li><b>Release</b> - the attack time of the limiter. Can not be twice greater than Lookahead time (greater values are truncated) for some modes.</li> |
| 183 |
<?php if (!$m) {?> |
| 184 |
<li><b>Stereo link</b> - stereo link, the degree of mutual influence between gain reduction of stereo channels</li> |
| 185 |
<?php } ?> |
| 186 |
<li><b>Makeup</b> - the makeup gain applied after the limiter stage.</li> |
| 187 |
<li><b>Reduction</b> - the overall gain reduction meter.</li> |
| 188 |
</ul> |
| 189 |
</ul> |
| 190 |
|
| 191 |
<p><b>'Output Limiter' section:</b></p> |
| 192 |
<ul> |
| 193 |
<li><b>ON</b> - Enables the output limiter.</li> |
| 194 |
<li><b>ALR</b> - Enables the ALR (Automatic Level Regulation) for the output limiter:</li> |
| 195 |
<ul> |
| 196 |
<li><b>Attack</b> - the attack time of the ALR compressor.</li> |
| 197 |
<li><b>Release</b> - the release time of the ALR compressor.</li> |
| 198 |
<li><b>Knee</b> - the knee level of the ALR compressor.</li> |
| 199 |
<li><b>Smooth</b> - the knee smoothness of the ALR compressor.</li> |
| 200 |
</ul> |
| 201 |
<li><b>Lookahead</b> - the size of lookahead buffer in milliseconds. Forces the limiter to add the corresponding latency to output signal.</li> |
| 202 |
<li><b>Mode</b> - the operating mode of the output limiter:</li> |
| 203 |
<ul> |
| 204 |
<li><b>Herm Thin</b>, <b>Herm Wide</b>, <b>Herm Tail</b>, <b>Herm Duck</b> - hermite-interpolated cubic functions are used to apply gain reduction.</b> |
| 205 |
<li><b>Exp Thin</b>, <b>Exp Wide</b>, <b>Exp Tail</b>, <b>Exp Duck</b> - exponent-interpolated functions are used to apply gain reduction.</b> |
| 206 |
<li><b>Line Thin</b>, <b>Line Wide</b>, <b>Line Tail</b>, <b>Line Duck</b> - linear-interpolated functions are used to apply gain reduction.</b> |
| 207 |
</ul> |
| 208 |
<li><b>Boost</b> - applies corresponding to the <b>Threshold</b> gain to the band's output signal.</li> |
| 209 |
<li><b>Threshold</b> - the maximum output level of the signal allowed by the limiter.</li> |
| 210 |
<li><b>Attack</b> - the attack time of the limiter. Can not be greater than Lookahead time (greater values are truncated) for some modes.</li> |
| 211 |
<li><b>Release</b> - the attack time of the limiter. Can not be twice greater than Lookahead time (greater values are truncated) for some modes.</li> |
| 212 |
<?php if (!$m) {?> |
| 213 |
<li><b>Stereo link</b> - stereo link, the degree of mutual influence between gain reduction of stereo channels</li> |
| 214 |
<?php } ?> |
| 215 |
</ul> |
| 216 |
|
| 217 |
<p><b>Pre-mix control overlay:</b></p> |
| 218 |
<ul> |
| 219 |
<?php if ($sc) { ?> |
| 220 |
<li><b>In -> SC</b> - the amount of signal from input channel added to the Sidechain.</li> |
| 221 |
<?php } ?> |
| 222 |
<li><b>In -> Link</b> - the amount of signal from input channel added to the shared memory link.</li> |
| 223 |
<?php if ($sc) { ?> |
| 224 |
<li><b>SC -> In</b> - the amount of signal from sidechain input channel added to the input channel.</li> |
| 225 |
<li><b>SC -> Link</b> - the amount of signal from sidechain input channel added to the shared memory link.</li> |
| 226 |
<?php } ?> |
| 227 |
<li><b>Link -> In</b> - the amount of signal from shared memory link added to the input channel.</li> |
| 228 |
<li><b>Link -> SC</b> - the amount of signal from shared memory link added to the sidechain channel.</li> |
| 229 |
</ul> |