src/tempo/beattracking.c: normalise confidence
authorPaul Brossier <piem@piem.org>
Tue, 26 Nov 2013 03:26:39 +0000 (04:26 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 26 Nov 2013 03:26:39 +0000 (04:26 +0100)
src/tempo/beattracking.c

index ac42216..2793d4a 100644 (file)
@@ -428,7 +428,7 @@ smpl_t
 aubio_beattracking_get_confidence (aubio_beattracking_t * bt)
 {
   if (bt->gp) {
-    return fvec_max (bt->acfout);
+    return fvec_max (bt->acfout) / fvec_sum(bt->acfout);
   } else {
     return 0.;
   }