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
midiLoadedAndroid

Types​

function(args)JavaScript
Action<PositionChangedEventArgs>.net
(e: PositionChangedEventArgs) -> UnitAndroid

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

argsAndroidalphaTab.synth.PositionChangedEventArgs

The information about the song duration.

PositionChangedEventArgs Properties​

See playerPositionChanged

Examples​

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