Skip to main content

midiLoad

since 1.2.0

Description​

This event is fired when a Midi file is being loaded. This event is fired when a Midi file for the song was generated and is being loaded by the synthesizer. This event can be used to inspect or modify the midi events which will be played for the song. This can be used to generate other visual representations of the song.

note

The generated midi file will NOT contain any metronome and count-in related events. The metronome and count-in ticks are handled within the synthesizer.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.midiLoad.on(file => {
initializePianoPractice(file);
});