shithub: aubio

Download patch

ref: 247ce7d3ff68897d62c7fc0f9f9e2fed46d68172
parent: bf1c67467bcd62d222f41e63adcf8e3771a09a03
author: Paul Brossier <piem@piem.org>
date: Sun Oct 18 11:19:26 EDT 2009

examples/aubionotes.c: update median usage

--- a/examples/aubionotes.c
+++ b/examples/aubionotes.c
@@ -135,11 +135,11 @@
 uint_t
 get_note (fvec_t * note_buffer, fvec_t * note_buffer2)
 {
-  uint_t i = 0;
+  uint_t i;
   for (i = 0; i < note_buffer->length; i++) {
     note_buffer2->data[0][i] = note_buffer->data[0][i];
   }
-  return fvec_median (note_buffer2);
+  return fvec_median_channel (note_buffer2, 0);
 }
 
 int main(int argc, char **argv) {