This is what I'm using to convert from db-to-float and it appears to be very close to what X-Air Edit shows. Sorry, the code is in Lua, since that's what TouchOSC uses.
Code: Select all
function dbToFloat(d)
if (d < -90) then -- Don't go below -90
d = -90
end
if (d < -60) then
f = (d+90)/480
elseif (d < -30) then
f = (d+70)/160
elseif (d < -10) then
f = (d+50)/80
elseif (d <= 10) then
f = (d+30)/40
end
return (f)
end