From: Paul Brossier Date: Mon, 8 Apr 2013 17:02:00 +0000 (-0500) Subject: examples/aubiomfcc.c: simplify process_print X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c7f80db180a96c10e0a542c77fbf2449bf16c39;p=aubio.git examples/aubiomfcc.c: simplify process_print --- diff --git a/examples/aubiomfcc.c b/examples/aubiomfcc.c index 391419b6..c5422e0b 100644 --- a/examples/aubiomfcc.c +++ b/examples/aubiomfcc.c @@ -60,18 +60,11 @@ static int aubio_process(smpl_t **input, smpl_t **output, int nframes) { } static void process_print (void) { - /* output times in seconds - write extracted mfccs - */ - - uint_t coef_cnt; - if (sink_uri == NULL) { - outmsg("%f\t",frames*overlap_size/(float)samplerate); - for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) { - outmsg("%f ", fvec_read_sample (mfcc_out, coef_cnt) ); - } - outmsg("\n"); - } + /* output times in seconds and extracted mfccs */ + if (sink_uri == NULL) { + outmsg("%f\t",frames*overlap_size/(float)samplerate); + fvec_print(mfcc_out); + } } int main(int argc, char **argv) {