Skip to main content

core.scriptFile

since 0.9.6
core.scriptFileJavaScriptscriptFileJavaScriptcore.scriptFileJSONscriptFileJSON

Description​

The full URL to the alphaTab JavaScript file. AlphaTab needs to know the full URL to the script file it is contained in to launch the web workers. AlphaTab will do its best to auto-detect this path but in case it fails, this setting can be used to explicitly define it. Altenatively also a global variable ALPHATAB_ROOT can be defined before initializing. Please be aware that bundling alphaTab together with other scripts might cause errors in case those scripts are not suitable for web workers. e.g. if there is a script bundled together with alphaTab that accesses the DOM, this will cause an error when alphaTab starts this script as worker.

scriptFile: string | null = Absolute url to JavaScript file containing alphaTab. (auto detected);