Skip to main content

midiLoaded

since 0.9.4

Description​

This event is fired when the Midi file needed for playback was loaded.

midiLoadedJavaScript
alphaTab.midiLoadedjQuery
alphaTab.midiLoadedHTML
MidiLoaded.net

Types​

function(args)JavaScript
Action<PositionChangedEventArgs>.net

Parameters​

ParametersTypeSummary
argsJavaScriptalphaTab.synth.PositionChangedEventArgs

The information about the song duration.

since 1.2.0-alpha.97
args.netAlphaTab.Synth.PositionChangedEventArgs

The information about the song duration.

since 1.2.0-alpha.97

PositionChangedEventArgs Properties​

See playerPositionChanged

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.midiLoaded.on(e => {
hideGeneratingAudioIndicator();
updateSongDuration(e.endTime);
});