9 Mar
2006
9 Mar
'06
12:42 a.m.
slightly optimized: fun float gaintodb( float gain ) { return 4.3280851226668906 * math.log(gain); } quick sanity check - gaintodb( 1/1000000000000.0 ) should yield close to 120 dB down, roughly the dynamic range of hearing. Should we put these in math/std? Ge!