Skip to main content

renderScore

since 0.9.4

Description​

Initiates a rendering of the score.

Signatures​

function renderScore(score)JavaScript
function renderScore(score, trackIndexes)JavaScript
alphaTab('renderScore', score, trackIndexes)jQuery
alphaTab('renderScore', trackIndexes)jQuery
bool RenderScore(Score score).net
bool RenderScore(Score score, int[] trackIndexes).net
fun renderScore(score: alphaTab.model.Score, trackIndexes: alphaTab.collections.DoubleList? = null): UnitAndroid

Parameters​

ParametersTypeSummary
scoreJavaScriptalphaTab.model.Score

The score that contains the tracks to be rendered.

tracksJavaScriptnumber[]

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

score.netAlphaTab.Model.Score

The score that contains the tracks to be rendered.

trackIndexes.netdouble[]

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

trackIndexesAndroidalphaTab.model.Score

The score that contains the tracks to be rendered.

trackIndexesAndroidalphaTab.collections.DoubleList

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

Returns​

Nothing

Examples​

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