filter should decay to set frequency

This commit is contained in:
Jade (Rose) Rowland 2023-12-20 09:28:40 -05:00
parent 30e402b9f1
commit e0a7fb8290

View File

@ -157,7 +157,7 @@ export function createFilter(context, type, frequency, Q, att, dec, sus, rel, fe
const min = clamp(2 ** -offset * frequency, 0, 20000);
const max = clamp(2 ** (fenv - offset) * frequency, 0, 20000);
getParamADSR(context, filter.frequency, attack, decay, sustain, release, min, max, start, end);
getParamADSR(context, filter.frequency, attack, decay, sustain, release, frequency, max, start, end);
return filter;
}