fix: synth default envelope

This commit is contained in:
Felix Roos 2024-01-13 22:24:59 +01:00
parent 4fb5c1828d
commit eefa90a2bc

View File

@ -29,12 +29,11 @@ export function registerSynthSounds() {
registerSound(
s,
(t, value, onended) => {
const [attack, decay, sustain, release] = getADSRValues([
value.attack,
value.decay,
value.sustain,
value.release,
]);
const [attack, decay, sustain, release] = getADSRValues(
[value.attack, value.decay, value.sustain, value.release],
'linear',
[0.001, 0.05, 0.6, 0.01],
);
let sound;
if (waveforms.includes(s)) {