From 247ce7d3ff68897d62c7fc0f9f9e2fed46d68172 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 18 Oct 2009 15:19:26 +0200 Subject: [PATCH] examples/aubionotes.c: update median usage --- examples/aubionotes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/aubionotes.c b/examples/aubionotes.c index 2335d753..75983462 100644 --- a/examples/aubionotes.c +++ b/examples/aubionotes.c @@ -135,11 +135,11 @@ note_append (fvec_t * note_buffer, smpl_t curnote) 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) { -- 2.26.2