projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc0262f
)
tests/src/test-mfcc.c: simplify using cvec_set
author
Paul Brossier
<piem@piem.org>
Thu, 22 Oct 2009 01:23:04 +0000
(
03:23
+0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 22 Oct 2009 01:23:04 +0000
(
03:23
+0200)
tests/src/test-mfcc.c
patch
|
blob
|
history
diff --git
a/tests/src/test-mfcc.c
b/tests/src/test-mfcc.c
index 44882f6910af992ba0cb19e7539408b8948906ca..a41f64bd1d4a4db61b9323369cdf260bd591dd23 100644
(file)
--- a/
tests/src/test-mfcc.c
+++ b/
tests/src/test-mfcc.c
@@
-11,14
+11,11
@@
main (void)
cvec_t *in = new_cvec (win_s, channels); /* input buffer */
fvec_t *out = new_fvec (n_coefs, channels); /* input buffer */
smpl_t samplerate = 16000.;
- uint_t i = 0;
/* allocate fft and other memory space */
aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate);
- for (i = 0; i < in->length; i ++) {
- in->norm[0][i] = 1.;
- }
+ cvec_set (in, 1.);
aubio_mfcc_do (o, in, out);
fvec_print (out);