<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I was never any good at logarithms.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I need to convert a linear audio volume to 
decibels.&nbsp; The values&nbsp;start at 0 being silence and 127 being 
maximum.&nbsp; This needs to be translated to db starting at 0db being maximum 
volume, and going negative to like -20db being a low&nbsp;volume.&nbsp; This 
will be a VU meter.&nbsp; I'm sure I need to use the&nbsp;Log10 math function, 
but I'm lost.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT color=#000000>Many 
thanks,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT 
color=#000000>Ross.</FONT></FONT></DIV></BODY></HTML>