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( registerSound(
s, s,
(t, value, onended) => { (t, value, onended) => {
const [attack, decay, sustain, release] = getADSRValues([ const [attack, decay, sustain, release] = getADSRValues(
value.attack, [value.attack, value.decay, value.sustain, value.release],
value.decay, 'linear',
value.sustain, [0.001, 0.05, 0.6, 0.01],
value.release, );
]);
let sound; let sound;
if (waveforms.includes(s)) { if (waveforms.includes(s)) {