DBToAmp (Convert db to amplitude)

Convert db (Decibels) to amplitude


inline double DbToAmp(double inDb) { // Depends on what you measure: intensity(10), pressure(20), old artscontrol(6/lg2 (near 20)) double _base = 6.0/log10( double(2) ) ; return pow(10., inDb/_base); }  

 

ref : http://www.dcs.shef.ac.uk/spandh/projects/respite/ctk/CTKv1.1.x.reference/DBToAmp.html

你可能感兴趣的:(DBToAmp (Convert db to amplitude))