Since: 0.9.4

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.

scoreLoaded.net

Types

function(score)JavaScript
Action<AlphaTab.Model.Score>.net

Parameters

ParametersTypeSummary
scoreJavaScriptalphaTab.model.ScoreThe score that was loaded with applied transpositions.
scoreAllAlphaTab.Model.ScoreThe score that was loaded with applied transpositions.

Examples

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