<!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>Nevermind, I think I've got it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>10*log10(x/127)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=ross@stationplaylist.com href="mailto:ross@stationplaylist.com">Ross 
  Levis</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz 
  href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi 
  List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, June 19, 2005 12:25 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> linear audio volume to db 
  conversion</DIV>
  <DIV><BR></DIV>
  <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></BLOCKQUOTE></BODY></HTML>