-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c9ad3
commit 8ba4035
Showing
6 changed files
with
743 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* musicxml-player v0.18.1 | ||
* musicxml-player v0.18.2 | ||
* (c) Karim Ratib <[email protected]> (https://github.com/infojunkie) | ||
* Released under the GPL-3.0-only License. | ||
*/ | ||
|
@@ -12588,7 +12588,7 @@ const timingObjectConstructor = createTimingObjectConstructor(createCalculateTim | |
// @todo Expose an isSupported flag which checks for performance.now() support. | ||
|
||
var name = "musicxml-player"; | ||
var version = "0.18.1"; | ||
var version = "0.18.2"; | ||
var description = "A simple JavaScript component that loads and plays MusicXML files in the browser using Web Audio and Web MIDI."; | ||
var main = "dist/musicxml-player.esm.js"; | ||
var type = "module"; | ||
|
@@ -12816,11 +12816,17 @@ class Player { | |
* Destroy the instance by freeing all resources and disconnecting observers. | ||
*/ | ||
destroy() { | ||
this._timingObject.removeEventListener('change', this._timingObjectListener); | ||
this._sheet.remove(); | ||
this._observer.disconnect(); | ||
this._midiPlayer.stop(); | ||
this._options.renderer.destroy(); | ||
// Never fail during destruction. | ||
try { | ||
this._timingObject.removeEventListener('change', this._timingObjectListener); | ||
this._sheet.remove(); | ||
this._observer.disconnect(); | ||
this._midiPlayer.stop(); | ||
this._options.renderer.destroy(); | ||
} | ||
catch (error) { | ||
console.error(`[Player.destroy] ${error}`); | ||
} | ||
} | ||
/** | ||
* Advance the playback and visual cursor to a given location. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.