Skip to main content

alphaTab.exporter.ScoreExporter

This is the base class for creating new song exporters which enable writing scores to a binary datasink.

 abstract class ScoreExporter

Propertiesโ€‹

nameโ€‹

(no description)

abstract readonly name: string;

Methodsโ€‹

exportโ€‹

Exports the given score to a binary buffer.

export(score: Score, settings?: Settings | null): Uint8Array
ParameterSummary
scoreAll

The score to serialize

settingsAll

The settings to use during serialization

Returnsโ€‹

A byte buffer with the serialized score.

initโ€‹

Initializes the importer with the given data and settings.

init(data: IWriteable, settings: Settings): void
ParameterSummary
dataAll

(no description)

settingsAll

(no description)

writeScoreโ€‹

Writes the given score into the data sink.

abstract writeScore(score: Score): void
ParameterSummary
scoreAll

(no description)

Returnsโ€‹

The score to write.