From b74451ed776e248590abb02fce868b0864a54cde Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Fri, 4 Sep 2020 09:56:45 +0100 Subject: [PATCH] sound/TonePlayer: give triggerRelease the note value that it needs when stopping --- js/sound/TonePlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/sound/TonePlayer.js b/js/sound/TonePlayer.js index a4ec8b4..8085d96 100644 --- a/js/sound/TonePlayer.js +++ b/js/sound/TonePlayer.js @@ -266,7 +266,7 @@ export class TonePlayer extends SoundPlayer if (this._soundLibrary === TonePlayer.SoundLibrary.TONE_JS) { // trigger the release of the sound, immediately: - this._synth.triggerRelease(); + this._synth.triggerRelease(this._note); // clear the repeat event if need be: if (this._toneId)