Hi all,

I was lucky enough to find this incredibly useful little patch which applies an exponential curve to linear steams of values from dials, etc:

Copy **all** of the following text. Then, in Max, select *New From Clipboard*.

----------begin_max5_patcher----------
634.3ocyV0rbaBCD9L7TriN1g5AIC33dquC8VmLYDXYakBRTgvwsYx6d0OPh
SBwF735IWPHoU69se6OROFFfxk6YMH3avOgffGCCBbKYWHnad.phtunj13DC
IZqxYJTjeq0RgVPqXts9thSK62olpLqqYp6XBZdoSh3t83qbxKyu+qjd4M5k
KJYZmUvGn9F9ecGFSlE+hrxVcuvjtU8Ko+SMy6OHtPih.TNUrAA29LtzEa4h
M2oXEZuf33EFUCDRlcHM1Mw7Et0djmBCsehFI+THqpXVC62Sy16rB5Ga4MPS
aty9.sttjyZ.p.X6qkByILbGTzp1w.sDzaYPIWvnJ3WBYNriV1ZD2rCupVIs
BskwUfh0HKa0bo.nZnT9.rVw9cKSTXz9rdPX0TgrU3PRxICcVLWHKkJO8DOK
MFuLCGM3eXKO893JN93AV0l7op8WkLL+CRFhORXdt8Pl7nDezFaGxxNy3rf8
fwOeWX9KFvGmRRRyNcIxAzUJdP5hLEWG+Q0AqKkT8Qq.747cLyBGwPvWVhQC
jYv5oQJSn4v7o1bvSJQSfcRt4BvNFqY.3Eq8Y57qAEcxNncLTraX4h+G4O0l
dajYSK+I4yPQ0MWhhJG5GvEyFzCmnqLBuHweoXZ+2mOQ+0cV.gNCGyClA7rk
GMwdzM86tMOkLQ76Dvcw4adcjyF10esS0HaUE8DZWjAdwLqXMZtfZun9.YrU
uGHzV9pULwgNzJdis32wJwCxtiEN1ZgShmketfC45Am4iIZgud3gLF7jbcwC
dL3AecvCdL7y4l+3q8MOQeGS0zoSGTLstt2+p3rH2TtvO0oQjhsi2KeRnUaO
E9O.3vFGI.
-----------end_max5_patcher-----------

What I need to do now is reverse this process; I’ve trawled the web quite a bit and can’t seem to find anything which does exactly what I need.

As far as I can see, the maths used here (where x is the linear data & y is the logarithmic equivalent) is:

y=2^(0.052456x)

I’ve tried rearranging this in all sorts of ways to make x the subject but have to admit that my maths isn’t all that great these days, so any light anyone would be willing to shed on this would be much appreciated.

Thanks!