projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0028ea7
)
src/spectral/mfcc.c: zero output before computing it
author
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 22:57:31 +0000
(
00:57
+0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 22:57:31 +0000
(
00:57
+0200)
src/spectral/mfcc.c
patch
|
blob
|
history
diff --git
a/src/spectral/mfcc.c
b/src/spectral/mfcc.c
index 60f998aa72d0171783b758ac5b240b8951254ead..b7dca023e321ef649493c9eeb37e83b3eb79943a 100644
(file)
--- a/
src/spectral/mfcc.c
+++ b/
src/spectral/mfcc.c
@@
-97,10
+97,14
@@
void
aubio_mfcc_do (aubio_mfcc_t * mf, cvec_t * in, fvec_t * out)
{
uint_t i, j;
+
/* compute filterbank */
aubio_filterbank_do (mf->fb, in, mf->in_dct);
- /* extract real part of fft grain */
+ /* zeros output */
+ fvec_zeros(out);
+
+ /* compute discrete cosine transform */
for (i = 0; i < mf->n_filters; i++) {
for (j = 0; j < mf->n_coefs; j++) {
out->data[0][j] += mf->in_dct->data[0][i]