shithub: aubio

Download patch

ref: 79a01c587943dc220a45d6fedd20ab3064ed39f7
parent: 5b1fff70830d22ba82de9b7f20c41200cbec5fa8
author: Paul Brossier <piem@piem.org>
date: Thu Sep 17 03:30:50 EDT 2009

src/lvec.{c,h}: add lvec_print

--- a/src/lvec.c
+++ b/src/lvec.c
@@ -61,3 +61,15 @@
   return s->data;
 }
 
+/* helper functions */
+
+void lvec_print(lvec_t *s) {
+  uint_t i,j;
+  for (i=0; i< s->channels; i++) {
+    for (j=0; j< s->length; j++) {
+      AUBIO_MSG(AUBIO_LSMP_FMT " ", s->data[i][j]);
+    }
+    AUBIO_MSG("\n");
+  }
+}
+
--- a/src/lvec.h
+++ b/src/lvec.h
@@ -113,6 +113,13 @@
 */
 lsmp_t ** lvec_get_data(lvec_t *s);
 
+/** print out lvec data 
+
+  \param s vector to print out 
+
+*/
+void lvec_print(lvec_t *s);
+
 #ifdef __cplusplus
 }
 #endif