Since: 0.9.4

midiLoaded

Description

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

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);
});