View Single Post
Old 06-11-2014, 01:24 PM   #58
SaulT
Human being with feelings
 
Join Date: Oct 2013
Location: Seattle, WA
Posts: 769
Default

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
SaulT is offline   Reply With Quote