dplug ~master (2024-09-30T22:25:31Z)
Home
Dub
Repo
linmap
dplug
core
math
Map linearly x from the range [a, b] to the range [c, d]
pure nothrow @
nogc
T
linmap
(
T
)
(
T
value
,
T
a
,
T
b
,
T
c
,
T
d
)
Meta
Source
See Implementation
dplug
core
math
aliases
fast_ceil
fast_cos
fast_exp
fast_exp2
fast_fabs
fast_floor
fast_log
fast_log10
fast_log2
fast_pow
fast_round
fast_sin
fast_sqrt
fast_trunc
functions
computeRMS
convertDecibelToLinearGain
convertFrequencyToMIDINote
convertFrequencyToNormalizedFrequency
convertLinearGainToDecibel
convertMIDINoteToFrequency
convertNormalizedFrequencyToFrequency
convertPowerToDecibel
equalLoudnessCurve
expDecayFactor
hermite
iFloorLog2
inverseSqrt
isEven
isOdd
isPowerOfTwo
lerp
linmap
logmap
nextMultipleOf
nextPow2HigherOrEqual
normalizePhase
rawSawtooth
rawSquare
rawTriangle
sinc
smoothStep
variables
TAU
Map linearly x from the range [a, b] to the range [c, d]