shithub: aubio

Download patch

ref: b2e706f39a1a65aa55e58f33ac7636e5a4f2f992
parent: fc0262f712abad2915bc6d5e9609b686b8004285
author: Paul Brossier <piem@piem.org>
date: Wed Oct 21 23:23:04 EDT 2009

tests/src/test-mfcc.c: simplify using cvec_set

--- a/tests/src/test-mfcc.c
+++ b/tests/src/test-mfcc.c
@@ -11,14 +11,11 @@
   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);