mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix envelope behavior
This commit is contained in:
parent
9f50f6ef0e
commit
88f677e910
@ -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…
x
Reference in New Issue
Block a user