From: Paul Brossier Date: Sun, 18 Oct 2009 13:19:26 +0000 (+0200) Subject: examples/aubionotes.c: update median usage X-Git-Tag: bzr2git~101 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=247ce7d3ff68897d62c7fc0f9f9e2fed46d68172;p=aubio.git examples/aubionotes.c: update median usage --- 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) {