pitchshift scaling

This commit is contained in:
Eric Rosenbaum 2016-10-24 16:59:14 -04:00
parent c8d194b951
commit 5f8382d69e

View file

@ -150,7 +150,7 @@ AudioEngine.prototype.setEffect = function (effect, value) {
this.reverb.wet.value = value / 100; this.reverb.wet.value = value / 100;
break; break;
case 'PITCH': case 'PITCH':
this._setPitchShift(value / 20); this._setPitchShift(value / 100);
break; break;
} }
}; };
@ -170,7 +170,7 @@ AudioEngine.prototype.changeEffect = function (effect, value) {
this.reverb.wet.value = this._clamp(this.reverb.wet.value, 0, 1); this.reverb.wet.value = this._clamp(this.reverb.wet.value, 0, 1);
break; break;
case 'PITCH': case 'PITCH':
this._setPitchShift(this.pitchShiftRatio + (value / 20)); this._setPitchShift(this.pitchShiftRatio + (value / 100));
break; break;
} }
}; };