From 2ea96f911eab232ce29bc21eaea1eb57796af05a Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Tue, 23 Oct 2018 16:54:01 -0700 Subject: [PATCH] subtract warm up time instead of add --- src/components/beat-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/beat-loader.js b/src/components/beat-loader.js index c2d5e47..c9be8a8 100644 --- a/src/components/beat-loader.js +++ b/src/components/beat-loader.js @@ -148,7 +148,7 @@ AFRAME.registerComponent('beat-loader', { if (this.beatsTimeOffset !== undefined && this.songCurrentTime !== this.el.components.song.context.currentTime) { this.songCurrentTime = this.el.components.song.context.currentTime; - this.beatsTime = (this.songCurrentTime + this.data.beatAnticipationTime) * 1000 + + this.beatsTime = (this.songCurrentTime + this.data.beatAnticipationTime) * 1000 - BEAT_WARMUP_TIME; }