(score: Score)
| 3409 | */ |
| 3410 | public readonly scoreLoaded: IEventEmitterOfT<Score>; |
| 3411 | private _onScoreLoaded(score: Score): void { |
| 3412 | if (this._isDestroyed) { |
| 3413 | return; |
| 3414 | } |
| 3415 | (this.scoreLoaded as EventEmitterOfT<Score>).trigger(score); |
| 3416 | this.uiFacade.triggerEvent(this.container, 'scoreLoaded', score); |
| 3417 | if (!this._setupOrDestroyPlayer()) { |
| 3418 | // feed midi into current player (a new player will trigger a midi generation once the player is ready) |
| 3419 | this.loadMidiForScore(); |
| 3420 | } |
| 3421 | } |
| 3422 | |
| 3423 | /** |
| 3424 | * This event is fired when alphaTab was resized and is about to rerender the music notation. |
no test coverage detected