fix import

This commit is contained in:
Jade (Rose) Rowland 2024-05-18 01:33:40 -04:00
parent 9b52807c7e
commit e87055d583
4 changed files with 14 additions and 10 deletions

View file

@ -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;