tweak audio to have a bit of delay, slower play time, higher pitch
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user