Skip to content

Commit

Permalink
Fix audible pops/clicks in several soundfont instruments (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitTzah authored Mar 20, 2023
1 parent d8a7668 commit 485b2cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions music/src/core/soundfont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 485b2cc

Please sign in to comment.