Refactor modulators

This commit is contained in:
Aria 2025-12-29 10:41:20 -06:00
parent 98367868ac
commit e79b4b8ccb
4 changed files with 147 additions and 138 deletions

View file

@ -1055,8 +1055,7 @@ class EnvelopeProcessor extends AudioWorkletProcessor {
this.state = (this.state + 1) % states.length;
time = states[this.state].time;
}
const clamped = clamp(this.val * depth, min, max);
out[i] = clamped;
out[i] = clamp(this.val * depth, min, max);
}
return true;
}