ref: 6fadb0d573fb7a34f852f0b6ba13e4fe6a40f402
parent: 416c0b567ac0c973c4cc1bf272d37046cc1ccdb7
author: Paul Brossier <piem@piem.org>
date: Thu Sep 6 14:02:28 EDT 2007
test-beattracking.c: add call to aubio_beattracking_get_bpm, making sure it returns 0 on silent frames
--- a/examples/tests/test-beattracking.c
+++ b/examples/tests/test-beattracking.c
@@ -12,8 +12,15 @@
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++;
};