use 0.001 as linear mintime as well (to prevent cracks)

This commit is contained in:
Felix Roos 2024-01-10 15:02:10 +01:00
parent c68dba8c21
commit f26fd18c7a

View File

@ -86,7 +86,7 @@ export function getCompressor(ac, threshold, ratio, knee, attack, release) {
// ex: sound(val).decay(val) will behave as a decay only envelope. sound(val).attack(val).decay(val) will behave like an "ad" env, etc.
export const getADSRValues = (params, curve = 'linear', defaultValues) => {
const envmin = curve === 'exponential' ? 0.001 : 0;
const envmin = curve === 'exponential' ? 0.001 : 0.001;
const releaseMin = 0.01;
const envmax = 1;
const [a, d, s, r] = params;