soundFontLoad
Description​
This event is fired when the SoundFont is being loaded and reports the progress accordingly.
soundFontLoadJavaScript |
alphaTab.soundFontLoadjQuery |
alphaTab.soundFontLoadHTML |
SoundFontLoad.net |
soundFontLoadAndroid |
Types​
function(e)JavaScript |
Parameters​
Parameters | Type | Summary |
---|---|---|
argsJavaScript | alphaTab.ProgressEventArgs | The information about the load progress of the file. |
Examples​
- JavaScript
- HTML
- jQuery
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.soundFontLoad.on((e) => {
updateProgress(e.loaded, e.total);
});
$('#alphaTab').on('alphaTab.soundFontLoad', (e, args) {
updateProgress(args.loaded, args.total);
});
document.querySelector('#alphaTab').addEventListener('alphaTab.soundFontLoad', () => {
updateProgress(e.detail.loaded, e.detail.total);
}, false);