alphaTab.Environment
This public class represents the global alphaTab environment where alphaTab looks for information like available layout engines staves etc. This public class represents the global alphaTab environment where alphaTab looks for information like available layout engines staves etc.
class EnvironmentPropertiesโ
fontDirectoryโ
(no description)
static readonly fontDirectory: string | null;isRunningInAudioWorkletโ
(no description)
static readonly isRunningInAudioWorklet: boolean;isRunningInWorkerโ
(no description)
static readonly isRunningInWorker: boolean;isTurbopackBundledโ
Whether alphaTab runs inside a bundle created by Turbopack (e.g. Next.js).
static readonly isTurbopackBundled: boolean;isViteBundledโ
(no description)
static readonly isViteBundled: boolean;isWebPackBundledโ
(no description)
static readonly isWebPackBundled: boolean;renderEnginesโ
(no description)
- JavaScript
- C#
- Kotlin
static readonly renderEngines: Map<string, RenderEngineFactory>;static Map<string, RenderEngineFactory> RenderEngines { get; }companion object { val renderEngines: alphaTab.collections.StringObjectMap<String, RenderEngineFactory> }scriptFileโ
(no description)
static readonly scriptFile: string | null;webPlatformโ
(no description)
static readonly webPlatform: WebPlatform;Methodsโ
buildImportersโ
Gets all default ScoreImporters
- JavaScript
- C#
- Kotlin
static buildImporters(): ScoreImporter[]static IList<ScoreImporter> BuildImporters()fun buildImporters(): alphaTab.collections.List<ScoreImporter>enableAlphaSkiaโ
Enables the usage of alphaSkia as rendering backend.
- JavaScript
- C#
- Kotlin
static enableAlphaSkia(musicFontData: ArrayBuffer, alphaSkia: unknown): voidstatic void EnableAlphaSkia(ArrayBuffer musicFontData, object alphaSkia)fun enableAlphaSkia(musicFontData: ArrayBuffer, alphaSkia: Any): Unit| Parameter | Summary |
|---|---|
musicFontDataAll | The raw binary data of the music font. |
alphaSkiaAll | The alphaSkia module. |
getRenderEngineFactoryโ
(no description)
- JavaScript
- C#
- Kotlin
static getRenderEngineFactory(engine: string): RenderEngineFactorystatic RenderEngineFactory GetRenderEngineFactory(string engine)fun getRenderEngineFactory(engine: String): RenderEngineFactory| Parameter | Summary |
|---|---|
engineAll | (no description) |
initializeAudioWorkletโ
(no description)
static initializeAudioWorklet(): voidinitializeMainโ
(no description)
static initializeMain(createWebWorker: (settings: Settings, nameHint: string) => Worker, createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>): void| Parameter | Summary |
|---|---|
createWebWorkerAll | (no description) |
createAudioWorkletAll | (no description) |
initializeWorkerโ
(no description)
static initializeWorker(): voidprintEnvironmentInfoโ
Prints the environment information for easier troubleshooting.
- JavaScript
- C#
- Kotlin
static printEnvironmentInfo(force?: boolean): voidstatic void PrintEnvironmentInfo(bool? force)fun printEnvironmentInfo(force: Boolean?): Unit| Parameter | Summary |
|---|---|
forceAll | Whether to force printing. |
registerAlphaSkiaCustomFontโ
Registers a new custom font for the usage in the alphaSkia rendering backend.
| Parameter | Summary |
|---|---|
fontDataAll | The raw binary data of the font. |
Returnsโ
The font info under which the font was registered.