projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1c674
)
examples/aubionotes.c: update median usage
author
Paul Brossier
<piem@piem.org>
Sun, 18 Oct 2009 13:19:26 +0000
(15:19 +0200)
committer
Paul Brossier
<piem@piem.org>
Sun, 18 Oct 2009 13:19:26 +0000
(15:19 +0200)
examples/aubionotes.c
patch
|
blob
|
history
diff --git
a/examples/aubionotes.c
b/examples/aubionotes.c
index 2335d753cd4bda30a17fe624a54dac298e1ac677..75983462ca07c7134addfd22c40e4528d2b7df9f 100644
(file)
--- 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) {