mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-22 13:13:10 -04:00
fix envelope behavior
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user