For reference, a quick approximation of the analog hardware audio log taper, with a direct comparison between Argitoth's code and mine. The curves are basically interchangeable.
My code
Code:
function reverseLogTaper(val)
(
(val*1.1)/(val+0.1);
);
function logTaper(val)
(
(-0.1*val)/(val-1.1);
);
Argitoth's
Code:
function reverseLogTaper(val)
(
(-0.85*x-x)/(-1.7*val-0.15);
);
function logTaper(val)
(
(0.85*val-val)/(1.7*val-1.85);
);
Log (Audio) Taper comparison
http://www.mathopenref.com/graphfunc...=5&bl=-5&b=0.1
Reverse Log (Reverse Audio) Taper comparison
http://www.mathopenref.com/graphfunc...=5&bl=-5&b=0.1