Skip to main content

renderScore

since 0.9.4

Description​

Initiates a rendering of the score.

Signatures​

function renderScore(score)JavaScript
function renderScore(score, tracks)JavaScript
alphaTab('renderScore', score, tracks)jQuery
alphaTab('renderScore', tracks)jQuery
bool RenderScore(Score score).net
bool RenderScore(Score score, int[] tracks).net

Parameters​

ParametersTypeSummary
score.netAlphaTab.Model.Score

The score that contains the tracks to be rendered.

tracks.netAlphaTab.Model.Track[]

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

scoreJavaScriptalphaTab.model.Score

The score that contains the tracks to be rendered.

tracksJavaScriptalphaTab.model.Track[]

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

Returns​

Nothing

Examples​

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.RenderScore(generateScore(),[ 2, 3 ]);
var at = $('#alphaTab');
var score = at.alphaTab('score');
at.alphaTab('renderScore', generateScore(), [ 2, 3 ]);
var api = new AlphaTabApi<MyControl>(...);
api.RenderScore(GenerateScore(), new [] { 2, 3 });