fix: filters without envelopes
This commit is contained in:
parent
735f892a08
commit
989dc0aabe
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export function createFilter(
|
|||
filter.frequency.value = frequency;
|
||||
|
||||
// Apply ADSR to filter frequency
|
||||
if (fenv !== 0) {
|
||||
if (!isNaN(fenv) && fenv !== 0) {
|
||||
const offset = fenv * fanchor;
|
||||
|
||||
const min = clamp(2 ** -offset * frequency, 0, 20000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue