tweak audio to have a bit of delay, slower play time, higher pitch

This commit is contained in:
Kevin Ngo
2018-10-12 02:15:14 -07:00
parent 65cb45590f
commit abeb18d7fb
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

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