From 5f8382d69e7bef77f9a4aeedf8a7c3524ad9d9df Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Mon, 24 Oct 2016 16:59:14 -0400 Subject: [PATCH] pitchshift scaling --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 1416800..e5ea978 100644 --- a/src/index.js +++ b/src/index.js @@ -150,7 +150,7 @@ AudioEngine.prototype.setEffect = function (effect, value) { this.reverb.wet.value = value / 100; break; case 'PITCH': - this._setPitchShift(value / 20); + this._setPitchShift(value / 100); break; } }; @@ -170,7 +170,7 @@ AudioEngine.prototype.changeEffect = function (effect, value) { this.reverb.wet.value = this._clamp(this.reverb.wet.value, 0, 1); break; case 'PITCH': - this._setPitchShift(this.pitchShiftRatio + (value / 20)); + this._setPitchShift(this.pitchShiftRatio + (value / 100)); break; } };