fix: getExpEnvelope full adsr

This commit is contained in:
Felix Roos 2023-08-31 04:22:54 +02:00
parent 7cf7ebc555
commit 6bcf8b91cc
2 changed files with 5 additions and 4 deletions

View file

@ -70,7 +70,7 @@ export function registerSynthSounds() {
fmVelocity = fmVelocity ?? 1;
fmEnvelope = getEnvelope(fmAttack, fmDecay, fmSustain, fmRelease, fmVelocity, t);
if (fmEnvelopeType === 'exp') {
fmEnvelope = getExpEnvelope(fmAttack, fmDecay, fmVelocity, t);
fmEnvelope = getExpEnvelope(fmAttack, fmDecay, fmSustain, fmRelease, fmVelocity, t);
fmEnvelope.node.maxValue = fmModulationIndex * 2;
fmEnvelope.node.minValue = 0.00001;
}