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 |
Types
function(score)JavaScript |
Action<AlphaTab.Model.Score>.net |
Parameters
Parameters | Type | Summary |
---|---|---|
scoreJavaScript | alphaTab.model.Score | The score that was loaded with applied transpositions. |
scoreAll | AlphaTab.Model.Score | The score that was loaded with applied transpositions. |
Examples
- JavaScript
- HTML
- jQuery
- C#
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);
});