From 2b8dee29ef81d9559d6dff0707c250fa72e85d46 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Fri, 26 Oct 2018 00:00:54 -0700 Subject: [PATCH] disable wall detune for now, web audio slows down playback rate with detune, need pitch shifter --- src/components/song.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/song.js b/src/components/song.js index b068d8b..a3ae7f7 100644 --- a/src/components/song.js +++ b/src/components/song.js @@ -183,13 +183,13 @@ AFRAME.registerComponent('song', { onWallHitStart: function () { const gain = this.audioAnalyser.gainNode.gain; gain.linearRampToValueAtTime(0.2, this.context.currentTime + 0.1); - this.source.detune.linearRampToValueAtTime(-1200, this.context.currentTime + 0.1); + // this.source.detune.linearRampToValueAtTime(-1200, this.context.currentTime + 0.1); }, onWallHitEnd: function () { const gain = this.audioAnalyser.gainNode.gain; gain.linearRampToValueAtTime(BASE_VOLUME, this.context.currentTime + 0.2); - this.source.detune.linearRampToValueAtTime(0, this.context.currentTime + 0.2); + // this.source.detune.linearRampToValueAtTime(0, this.context.currentTime + 0.2); }, startAudio: function () {