From cb3b1b6785cbb3923df3b530b15d07bb2cf054e6 Mon Sep 17 00:00:00 2001 From: Stian Jensen Date: Sun, 26 Jul 2015 21:18:49 +0200 Subject: [PATCH] Improve BEAN_FOR_FRAME calculation --- nin/dasBoot/BEATBEAN.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nin/dasBoot/BEATBEAN.js b/nin/dasBoot/BEATBEAN.js index 10f2e21..9dd58c4 100644 --- a/nin/dasBoot/BEATBEAN.js +++ b/nin/dasBoot/BEATBEAN.js @@ -16,7 +16,7 @@ }; FRAME_FOR_BEAN = function(bean) { - return ((bean - 1.5) * framesPerBeat + 0.5) | 0; + return (bean * framesPerBeat - 0.5) | 0; }; };