-
Notifications
You must be signed in to change notification settings - Fork 5
10.1 Engine Math
BigBob did an outstanding job with his math library, which has been used extensively by any developer so far. Thanks to the new real math routines that come with Kontakt 5.6, it is possible to enhance the precision of those calculations, as well as reduce drastically the amount of lines of code required to convert an Engine Parameter into a linear value and vice-versa.
All these functions are inline functions, therefore can be used in if statements and loops.
Convert the SV and Ladder filters frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 26.0
to 19900.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.SVFreq(<in>)
Convert the SV multi filter frequency (for SV Par LP/HP, SV Par BP/BP, and SV Ser LP/HP) into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 2.6
to 84400.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.SVMFreq(<in>)
Convert the Multi Versatile 3x2 filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 26.0
to 15800.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.V3x2Freq(<in>)
Convert the AR filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 8.2
to 35500.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.ARFreq(<in>)
Convert the 1, 2, 3 bands EQ frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 20.0
to 20000.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.EqFreq(<in>)
Convert the LP Legacy filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 43.6
to 21800.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.LPFreq(<in>)
Convert the Legacy HP/BP filter frequency (including HP1, HP4, BP2, BP4, and BR4) into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 36.1
to 18100.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.HBFreq(<in>)
Convert the Legacy HP2 filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 37.3
to 18700.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.HP2Freq(<in>)
Convert the DAFT filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 26.0
to 35500.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.DAFTFreq(<in>)
Convert the LP Pro53 and Legacy Ladder filter frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 26.0
to 8400.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.ProFreq(<in>)
Convert the Solid GEQ frequencies into an Engine Parameter value and vice-versa.
The output of the E2V.
functions goes from:
-
_LF
:40.0
to600.0
Hz -
_LMF
:200.0
to2500.0
Hz -
_HMF
:600.0
to7000.0
Hz -
_HF
:1500.0
to22000.0
Hz
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.SGEqFreq_LF(<in>)
E2V.SGEqFreq_LMF(<in>)
E2V.SGEqFreq_HMF(<in>)
E2V.SGEqFreq_HF(<in>)
Convert the LFO frequency into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 0.01
to 213.0
Hz.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.LFOFreq(<in>)
Convert the Tune value into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from -3600.0
to 3600.0
millicents.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.tune(<in>)
Convert the Volume value into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from -inf
to 12000.0
millidB.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.volume(<in>)
Convert the Envelope's Attack time into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 0.0
to 1500000.0
microseconds.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.AtkTime(<in>)
Convert the Envelope's Decay and Release time into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 0.0
to 2500000.0
microseconds.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.DRTime(<in>)
Convert the Send FX Delay time into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 502.0
to 290147.2
microseconds.
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.DlyTime(<in>)
Convert the 1, 2, 3 Band EQ Bandwidth into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 33.0
to 300.0
octaves (scaled by 100).
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.EqBW(<in>)
Convert the Solid G-EQ Bandwidth into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from 70.0
to 250.0
octaves (scaled by 100).
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.SGEqBW(<in>)
Convert the 1, 2, 3 Band EQ Gain into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from -180.0
to +180.0
dB (scaled by 10).
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.EqGain(<in>)
Convert the Solid G-EQ Gain into an Engine Parameter value and vice-versa. The output of the E2V.
function goes from -200.0
to +200.0
dB (scaled by 10).
The input of E2V.
must be an integer value (e.g. the value of a knob). The input of V2E.
must be a real value.
The E2V.
function outputs a real value, while the V2E.
function outputs an integer value.
E2V.SGEqGain(<in>)