From 1f80d61f96c99831f653fbbf8a08844f950721bd Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Fri, 12 Oct 2018 01:39:08 -0700 Subject: [PATCH] randomize the beat hit sound to speed up not slow down --- src/components/beat-hit-sound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/beat-hit-sound.js b/src/components/beat-hit-sound.js index fd92e93..60a92bb 100644 --- a/src/components/beat-hit-sound.js +++ b/src/components/beat-hit-sound.js @@ -46,7 +46,7 @@ AFRAME.registerComponent('beat-hit-sound', { processSound: function (audio) { // Randomize a bit. audio.detune = (Math.random() * 1500); - audio.playbackRate = 0.80 + (Math.random() * .20); + audio.playbackRate = 1 + (Math.random() * .20); this.currentBeatEl.object3D.getWorldPosition(audio.position); } });