midiLoaded
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​
Parameters | Type | Summary |
---|---|---|
argsJavaScript | alphaTab.synth.PositionChangedEventArgs | The information about the song duration. since 1.2.0-alpha.97 |
args.net | AlphaTab.Synth.PositionChangedEventArgs | The information about the song duration. since 1.2.0-alpha.97 |
argsAndroid | alphaTab.synth.PositionChangedEventArgs | The information about the song duration. |
PositionChangedEventArgs Properties​
Examples​
- JavaScript
- HTML
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.midiLoaded.on(e => {
hideGeneratingAudioIndicator();
updateSongDuration(e.endTime);
});
$('#alphaTab').on('alphaTab.midiFileLoaded', (e) => {
var args = e.detail;
hideGeneratingAudioIndicator();
updateSongDuration(args.endTime);
});
document.querySelector('#alphaTab').addEventListener('alphaTab.midiFileLoaded', e => {
hideGeneratingAudioIndicator();
updateSongDuration(e.endTime);
}, false);
var api = new AlphaTabApi<MyControl>(...);
api.MidiLoaded.On(e =>
{
HideGeneratingAudioIndicator();
UpdateSongDuration(e.EndTime);
});
val api = AlphaTabApi<MyControl>(...)
api.midiLoaded.on { e ->
hideGeneratingAudioIndicator()
updateSongDuration(e.endTime)
}