Decibel
Function dB2Pa(dB As Double)
    dB2Pa = 0.00002 * 10 ^ (dB / 20)
End Function

Function Pa2dB(Pa As Double)
    Pa2dB = 20 * Log(Pa / 0.00002) / Log(10)
End Function

Note that there are two functions, one for converting a sound pressure level in decidels to pascals (dB2Pa) and the other is for converting from pascals to decibels (Pa2dB).

page_revision: 1, last_edited: 1209061193|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License