projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
416c0b5
)
test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns...
author
Paul Brossier
<piem@piem.org>
Thu, 6 Sep 2007 16:02:28 +0000
(18:02 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 6 Sep 2007 16:02:28 +0000
(18:02 +0200)
examples/tests/test-beattracking.c
patch
|
blob
|
history
diff --git
a/examples/tests/test-beattracking.c
b/examples/tests/test-beattracking.c
index 7578469a7ee9cc76dc58423a0f8527896dade0c3..20fc6b0a874b72c0e858a45e47020e7f645a454a 100644
(file)
--- a/
examples/tests/test-beattracking.c
+++ b/
examples/tests/test-beattracking.c
@@
-12,8
+12,15
@@
int main(){
uint_t i = 0;
+ smpl_t curtempo;
+
while (i < 10) {
aubio_beattracking_do(tempo,in,out);
+ curtempo = aubio_beattracking_get_bpm(tempo);
+ if (curtempo != 0.) {
+ fprintf(stdout,"%f\n",curtempo);
+ return 1;
+ }
i++;
};