This commit is contained in:
Aria
2025-11-23 19:39:54 -06:00
parent 8690f0e5d9
commit 7eb737006f
+1 -1
View File
@@ -615,11 +615,11 @@ class PitchProcessor extends OLAProcessor {
processOLA(inputs, outputs, parameters) {
// no automation, take last value
let pitchFactor = parameters.pitchFactor[parameters.pitchFactor.length - 1];
pitchFactor = Math.max(0.01, pitchFactor);
if (this.vocoderMode) {
pitchFactor = pitchFactor < 0 ? pitchFactor * 0.25 : pitchFactor;
pitchFactor = Math.max(0, pitchFactor + 1);
}
pitchFactor = Math.max(0.01, pitchFactor);
for (let i = 0; i < this.nbInputs; i++) {
for (let j = 0; j < inputs[i].length; j++) {
const input = inputs[i][j];