shithub: aubio

Download patch

ref: 8c7f80db180a96c10e0a542c77fbf2449bf16c39
parent: 0e755894192da355b20c4494aaba445fa4adff28
author: Paul Brossier <piem@piem.org>
date: Mon Apr 8 08:02:00 EDT 2013

examples/aubiomfcc.c: simplify process_print

--- a/examples/aubiomfcc.c
+++ b/examples/aubiomfcc.c
@@ -60,18 +60,11 @@
 }
 
 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) {