trying to fix divergent firefox behavior

This commit is contained in:
Jade (Rose) Rowland 2023-12-20 01:44:34 -05:00
parent 34ba81a841
commit f6d9ad51c6
2 changed files with 30 additions and 31 deletions

View file

@ -29,10 +29,12 @@ export function registerSynthSounds() {
registerSound(
s,
(t, value, onended) => {
const defaultADSRValues = [0.001, 0.05, 0.6, 0.01];
const defaultADSRValues = [0.001, 0.1, 0.6, 0.01];
const [attack, decay, sustain, release] = getADSRValues(
[value.attack, value.decay, value.sustain, value.release],
defaultADSRValues,
0,
0.6,
);
let sound;
@ -42,7 +44,6 @@ export function registerSynthSounds() {
let { density } = value;
sound = getNoiseOscillator(s, t, density);
}
console.log(sound);
let { node: o, stop, triggerRelease } = sound;
// turn down