mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
pitchshift scaling
This commit is contained in:
parent
c8d194b951
commit
5f8382d69e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue