Skip to main content

alphaTab.model.Score

The score is the root node of the complete model. It stores the basic information of a song and stores the sub components.

 class Score

Properties​

album​

The album of this song.

album: string;

artist​

The artist who performs this song.

artist: string;

backingTrack​

Information about the backing track that can be used instead of the synthesized audio.

backingTrack: BackingTrack | undefined;

The owner of the copyright of this song.

copyright: string;

defaultSystemsLayout​

Defines how many bars are placed into the systems (rows) when displaying multiple tracks unless a value is set in the systemsLayout.

defaultSystemsLayout: number;

instructions​

Additional instructions

instructions: string;

masterBars​

Gets or sets a list of all masterbars contained in this song.

masterBars: MasterBar[];

music​

The author of the music.

music: string;

notices​

Some additional notes about the song.

notices: string;

style​

The style customizations for this item.

style?: ScoreStyle;

stylesheet​

Gets or sets the rendering stylesheet for this song.

stylesheet: RenderStylesheet;

subTitle​

The subtitle of the song.

subTitle: string;

systemsLayout​

Defines how many bars are placed into the systems (rows) when displaying multiple tracks.

systemsLayout: number[];

tab​

The author of this tablature.

tab: string;

tempo​

The initial tempo of the song in BPM. The tempo might change via tempoAutomations .

readonly tempo: number;

tempoLabel​

The name/label of the initial tempo.

readonly tempoLabel: string;

title​

The title of the song.

title: string;

tracks​

Gets or sets a list of all tracks contained in this song.

tracks: Track[];

words​

The author of the song lyrics

words: string;

Methods​

addMasterBar​

(no description)

addMasterBar(bar: MasterBar): void
ParameterSummary
barAll

(no description)

addTrack​

(no description)

addTrack(track: Track): void
ParameterSummary
trackAll

(no description)

applyFlatSyncPoints​

Applies the given list of FlatSyncPoint to this song.

applyFlatSyncPoints(syncPoints: FlatSyncPoint[]): void
ParameterSummary
syncPointsAll

The list of sync points to apply.

exportFlatSyncPoints​

Exports all sync points in this song to a FlatSyncPoint list.

exportFlatSyncPoints(): FlatSyncPoint[]

finish​

(no description)

finish(settings: Settings): void
ParameterSummary
settingsAll

(no description)

rebuildRepeatGroups​

(no description)

rebuildRepeatGroups(): void

resetIds​

Resets all internal ID generators.

static resetIds(): void