From 485b2ccd407f9089ef4aaceb0096f50dafe047db Mon Sep 17 00:00:00 2001 From: AmitTzah <93420076+AmitTzah@users.noreply.github.com> Date: Mon, 20 Mar 2023 13:00:41 +0200 Subject: [PATCH] Fix audible pops/clicks in several soundfont instruments (#658) --- music/src/core/soundfont.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/music/src/core/soundfont.ts b/music/src/core/soundfont.ts index 18c48c78..16f0a01e 100644 --- a/music/src/core/soundfont.ts +++ b/music/src/core/soundfont.ts @@ -240,6 +240,7 @@ export class Instrument { .ToneBufferSource({ url: buffer, fadeOut: this.FADE_SECONDS, + fadeIn: this.FADE_SECONDS, }) .connect(output); source.stop(startTime + duration + this.FADE_SECONDS);