scoreLoaded
Description​
This event is fired whenever a new song is loaded. 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.
scoreLoadedJavaScript |
alphaTab.scoreLoadedjQuery |
alphaTab.scoreLoadedHTML |
ScoreLoaded.net |
scoreLoadedAndroid |
Types​
function(score)JavaScript |
Action<AlphaTab.Model.Score>.net |
(score: AlphaTab.Model.Score) : UnitAndroid |
Parameters​
Parameters | Type | Summary |
---|---|---|
scoreJavaScript | alphaTab.model.Score | The score that was loaded with applied transpositions. |
score.net | AlphaTab.Model.Score | The score that was loaded with applied transpositions. |
scoreAndroid | alphaTab.model.Score | The score that was loaded with applied transpositions. |
Examples​
- JavaScript
- HTML
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.scoreLoaded.on((score) => {
updateSongInformationInUi(score);
});
$('#alphaTab').on('alphaTab.scoreLoaded', (e, score) => {
updateSongInformationInUi(score);
});
document.querySelector('#alphaTab').addEventListener('alphaTab.scoreLoaded', (e) => {
updateSongInformationInUi(e.detail);
}, false);
var api = new AlphaTabApi<MyControl>(...);
api.ScoreLoaded.On(score =>
{
UpdateSongInformationInUi(score);
});
val api = AlphaTabApi<MyControl>(...)
api.scoreLoaded.on { score ->
updateSongInformationInUi(score)
}