From 42e18c839447d7c8c1719f219e6a95b5147e699f Mon Sep 17 00:00:00 2001 From: William Toohey Date: Wed, 3 Feb 2016 21:29:11 +1000 Subject: [PATCH] Fix massive editor lag after too many loops --- src/js/HuesCore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/HuesCore.js b/src/js/HuesCore.js index 3530069..c017c8d 100644 --- a/src/js/HuesCore.js +++ b/src/js/HuesCore.js @@ -291,7 +291,7 @@ HuesCore.prototype.animationLoop = function() { }; HuesCore.prototype.recalcBeatIndex = function() { - this.beatIndex = Math.floor(this.soundManager.clampedTime() / this.beatLength); + this.beatIndex = Math.floor(this.soundManager.currentTime() / this.beatLength); }; HuesCore.prototype.getBeatIndex = function() {