From 3f27a98ed43e11b18e94150ae8ffa2f1ab9be946 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 2 Dec 2013 12:07:05 -0500 Subject: [PATCH] src/tempo/beattracking.c: improve comments, remove old ones --- src/tempo/beattracking.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/tempo/beattracking.c b/src/tempo/beattracking.c index 2793d4ad..d1d362c3 100644 --- a/src/tempo/beattracking.c +++ b/src/tempo/beattracking.c @@ -300,11 +300,7 @@ aubio_beattracking_checkstate (aubio_beattracking_t * bt) fvec_t *acfout = bt->acfout; if (gp) { - // doshiftfbank again only if context dependent model is in operation - //acfout = doshiftfbank(acf,gwv,timesig,laglen,acfout); - //don't need acfout now, so can reuse vector - // gwv is, in first loop, definitely all zeros, but will have - // proper values when context dependent model is activated + // compute shift invariant comb filterbank fvec_zeros (acfout); for (i = 1; i < laglen - 1; i++) { for (a = 1; a <= bt->timesig; a++) { @@ -313,12 +309,9 @@ aubio_beattracking_checkstate (aubio_beattracking_t * bt) } } } + // since gp is set, gwv has been computed in previous checkstate fvec_weight (acfout, bt->gwv); gp = fvec_quadratic_peak_pos (acfout, fvec_max_elem (acfout)); - /* - while(gp<32) gp =gp*2; - while(gp>64) gp = gp/2; - */ } else { //still only using general model gp = 0; -- 2.11.0