mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 11:38:37 +00:00
fix: filters without envelopes
This commit is contained in:
parent
735f892a08
commit
989dc0aabe
@ -98,7 +98,7 @@ export function createFilter(
|
|||||||
filter.frequency.value = frequency;
|
filter.frequency.value = frequency;
|
||||||
|
|
||||||
// Apply ADSR to filter frequency
|
// Apply ADSR to filter frequency
|
||||||
if (fenv !== 0) {
|
if (!isNaN(fenv) && fenv !== 0) {
|
||||||
const offset = fenv * fanchor;
|
const offset = fenv * fanchor;
|
||||||
|
|
||||||
const min = clamp(2 ** -offset * frequency, 0, 20000);
|
const min = clamp(2 ** -offset * frequency, 0, 20000);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user