Skip to main content

scoreLoaded

since 0.9.4

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​

ParametersTypeSummary
scoreJavaScriptalphaTab.model.Score

The score that was loaded with applied transpositions.

score.netAlphaTab.Model.Score

The score that was loaded with applied transpositions.

scoreAndroidalphaTab.model.Score

The score that was loaded with applied transpositions.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.scoreLoaded.on((score) => {
updateSongInformationInUi(score);
});