Open
Description
The computation of ``VCVF` from level under the LinearTaper fader law is currently
Math.round(15196 + level * 118.775)
which is adequate as far as it goes. But it turns out, as I discovered by happenstance, it fails ever-so-slightly for +10dB: the result of the inner sum ends up being in range (16383, 16384)
, but closer to the upper level so Math.round
changes it to 1 << 14
which means when VC
/VF
are extracted, they both end up being zeroes.
Changing this to use Math.floor
will change computations by 1 part in 16384, but I think it's safe to say that amount of change in behavior is both tolerable, and practically utterly inaudible.
Metadata
Metadata
Assignees
Labels
No labels