From cecc241463403da9a5064a36cc0ce1ba360bd3e1 Mon Sep 17 00:00:00 2001 From: Mark Hills Date: Sun, 18 Dec 2011 00:17:13 +0000 Subject: [PATCH] Remove source of mystery +0.1 BPM It's late now, but at the current moment I don't understand the rationale for this subtraction. It looks like it is left over from some old implemenetation. --- bpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpm.c b/bpm.c index 4871455..d1954cd 100644 --- a/bpm.c +++ b/bpm.c @@ -153,7 +153,7 @@ double scan_for_bpm(float nrg[], size_t len, } } - return interval_to_bpm(trough - (step / 2)); + return interval_to_bpm(trough); } void usage(FILE *f)