fix import
This commit is contained in:
parent
9b52807c7e
commit
e87055d583
4 changed files with 14 additions and 10 deletions
|
|
@ -146,7 +146,9 @@ class LadderProcessor extends AudioWorkletProcessor {
|
|||
|
||||
const resonance = parameters.q[0];
|
||||
const drive = clamp(Math.exp(parameters.drive[0]), 0.1, 2000);
|
||||
|
||||
let cutoff = parameters.frequency[0];
|
||||
// eslint-disable-next-line no-undef
|
||||
cutoff = (cutoff * 2 * _PI) / sampleRate;
|
||||
cutoff = cutoff > 1 ? 1 : cutoff;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue