Skip to main content

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 Environment

Properties​

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)

static readonly renderEngines: Map<string, RenderEngineFactory>;

scriptFile​

(no description)

static readonly scriptFile: string | null;

webPlatform​

(no description)

static readonly webPlatform: WebPlatform;

Methods​

buildImporters​

Gets all default ScoreImporters

static buildImporters(): ScoreImporter[]

enableAlphaSkia​

Enables the usage of alphaSkia as rendering backend.

static enableAlphaSkia(musicFontData: ArrayBuffer, alphaSkia: unknown): void
ParameterSummary
musicFontDataAll

The raw binary data of the music font.

alphaSkiaAll

The alphaSkia module.

getRenderEngineFactory​

(no description)

static getRenderEngineFactory(engine: string): RenderEngineFactory
ParameterSummary
engineAll

(no description)

initializeAudioWorklet​

(no description)

static initializeAudioWorklet(): void

initializeMain​

(no description)

static initializeMain(createWebWorker: (settings: Settings) => Worker, createAudioWorklet: (context: AudioContext, settings: Settings) => Promise<void>): void
ParameterSummary
createWebWorkerAll

(no description)

createAudioWorkletAll

(no description)

initializeWorker​

(no description)

static initializeWorker(): void

printEnvironmentInfo​

Prints the environment information for easier troubleshooting.

static printEnvironmentInfo(force?: boolean): void
ParameterSummary
forceAll

Whether to force printing.

registerAlphaSkiaCustomFont​

Registers a new custom font for the usage in the alphaSkia rendering backend.

static registerAlphaSkiaCustomFont(fontData: Uint8Array): Font
ParameterSummary
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
ParameterSummary
actionAll

(no description)

delayAll

(no description)