detune a whole octave wall

This commit is contained in:
Kevin Ngo
2018-10-15 22:05:53 -07:00
parent 5ca70577ca
commit 40197730f0

View File

@@ -132,7 +132,7 @@ AFRAME.registerComponent('song', {
onWallHitStart: function () {
const gain = this.audioAnalyser.gainNode.gain;
gain.linearRampToValueAtTime(0.2, this.context.currentTime + 0.1);
this.source.detune.linearRampToValueAtTime(-1000, this.context.currentTime + 0.1);
this.source.detune.linearRampToValueAtTime(-1200, this.context.currentTime + 0.1);
},
onWallHitEnd: function () {