Refactor modulators
This commit is contained in:
parent
98367868ac
commit
e79b4b8ccb
4 changed files with 147 additions and 138 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue