pitch up the audio a bit, but need to replace with more snare

This commit is contained in:
Kevin Ngo
2018-10-12 01:12:48 -07:00
parent eab3d67f39
commit 8631269700

View File

@@ -45,7 +45,7 @@ AFRAME.registerComponent('beat-hit-sound', {
processSound: function (audio) {
// Randomize a bit.
audio.detune = (Math.random() * 1000) - 500;
audio.detune = (Math.random() * 1500);
audio.playbackRate = 0.80 + (Math.random() * .20);
this.currentBeatEl.object3D.getWorldPosition(audio.position);
}