fix envelope behavior
This commit is contained in:
parent
9f50f6ef0e
commit
88f677e910
2 changed files with 1 additions and 2 deletions
|
|
@ -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));
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue