From db06b3d742a44bd6bd23b77c0888f2154381f810 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Mon, 27 Nov 2017 16:46:42 +0100 Subject: [PATCH] Calling setRate in WebAudioSound detune property's setter method --- v3/src/sound/webaudio/WebAudioSound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index c2fa33425..4d2d63ab1 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -214,7 +214,7 @@ Object.defineProperty(WebAudioSound.prototype, 'detune', { set: function (value) { this.currentConfig.detune = value; if (this.source && this.source.detune) { - this.source.detune.setValueAtTime(Math.max(-1200, Math.min(value + this.manager.detune, 1200)), 0); + this.setRate(); } } });