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;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) => 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.
throttle​
(no description)
static throttle(action: () => void, delay: number): () => void| Parameter | Summary |
|---|---|
actionAll | (no description) |
delayAll | (no description) |