filterbank.c: use base 10 logarithm
authorPaul Brossier <piem@piem.org>
Thu, 17 Sep 2009 17:30:15 +0000 (19:30 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 17 Sep 2009 17:30:15 +0000 (19:30 +0200)
src/spectral/filterbank.c

index 516b30b75505196e19e121f35cec1a03d7b9403a..e97a18ecb51c208512c3a1352a15267098cde26a 100644 (file)
@@ -83,7 +83,7 @@ aubio_filterbank_do (aubio_filterbank_t * f, cvec_t * in, fvec_t * out)
       out->data[i][fn] = MAX (VERY_SMALL_NUMBER, out->data[i][fn]);
 
       /* compute logarithm */
-      out->data[i][fn] = LOG (out->data[i][fn]);
+      out->data[i][fn] = LOG10 (out->data[i][fn]);
     }
   }