scoreLoaded
Description​
This event is fired whenever a new song is loaded. This event is fired whenever a new song is loaded or changing due to renderScore
or renderTracks
calls.
It is fired after the transposition midi pitches from the settings were applied, but before any midi is generated or rendering is started.
This allows any modification of the score before further processing.
- JavaScript
- C#
- Kotlin
scoreLoaded: IEventEmitterOfT<Score>;
IEventEmitterOfT<Score> ScoreLoaded { get; set; }
var scoreLoaded: IEventEmitterOfT<Score>
Examples​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.scoreLoaded.on((score) => {
updateSongInformationInUi(score);
});
var api = new AlphaTabApi<MyControl>(...);
api.ScoreLoaded.On(score =>
{
UpdateSongInformationInUi(score);
});
val api = AlphaTabApi<MyControl>(...)
api.scoreLoaded.on { score ->
updateSongInformationInUi(score)
}