fix envelope behavior

This commit is contained in:
Jade Rowland 2023-12-15 18:54:04 -05:00
parent 9f50f6ef0e
commit 88f677e910
2 changed files with 1 additions and 2 deletions

View File

@ -77,7 +77,7 @@ export const getParamADSR = (param, attack, decay, sustain, release, min, max, b
param.setValueAtTime(min, begin);
param.linearRampToValueAtTime(peak, begin + attack);
param.linearRampToValueAtTime(sustainLevel, begin + attack + decay);
param.setValueAtTime(sustainLevel, end);
// param.setValueAtTime(sustainLevel, end);
param.linearRampToValueAtTime(min, end + Math.max(release, 0.1));
};

View File

@ -364,7 +364,6 @@ export const superdough = async (value, deadline, hapDuration) => {
[value.lpattack, value.lpdecay, value.lpsustain, value.lprelease],
filterEnvDefaults,
);
console.log(lpattack, 'atta');
let lp = () =>
createFilter(