renderScore
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​
Parameters | Type | Summary |
---|---|---|
score.net | AlphaTab.Model.Score | The score that contains the tracks to be rendered. |
tracks.net | AlphaTab.Model.Track[] | The indexes of the tracks that should be rendered. If not provided, the first track of the song will be rendered. |
scoreJavaScript | alphaTab.model.Score | The score that contains the tracks to be rendered. |
tracksJavaScript | alphaTab.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 });