From: Paul Brossier Date: Thu, 22 Oct 2009 01:23:04 +0000 (+0200) Subject: tests/src/test-mfcc.c: simplify using cvec_set X-Git-Tag: bzr2git~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2e706f39a1a65aa55e58f33ac7636e5a4f2f992;p=aubio.git tests/src/test-mfcc.c: simplify using cvec_set --- diff --git a/tests/src/test-mfcc.c b/tests/src/test-mfcc.c index 44882f69..a41f64bd 100644 --- 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);