Skip to main content

renderScore

since 0.9.4

Initiates a rendering of the given score.

renderScore(score: Score, trackIndexes?: number[], renderHints?: RenderHints): void
ParameterSummary
scoreAll

The score containing the tracks to be rendered.

trackIndexesAll

The indexes of the tracks from the song that should be rendered. If not provided, the first track of the song will be shown.

renderHintsAll

Additional hints to respect during layouting and rendering.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.RenderScore(generateScore(),[ 2, 3 ]);