renderScore
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​
Parameters | Type | Summary |
---|---|---|
scoreJavaScript | alphaTab.model.Score | The score that contains the tracks to be rendered. |
tracksJavaScript | number[] | The indexes of the tracks that should be rendered. If not provided, the first track of the song will be rendered. |
score.net | AlphaTab.Model.Score | The score that contains the tracks to be rendered. |
trackIndexes.net | double[] | The indexes of the tracks that should be rendered. If not provided, the first track of the song will be rendered. |
trackIndexesAndroid | alphaTab.model.Score | The score that contains the tracks to be rendered. |
trackIndexesAndroid | alphaTab.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​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.RenderScore(generateScore(),[ 2, 3 ]);
const at = $('#alphaTab');
const score = at.alphaTab('score');
at.alphaTab('renderScore', generateScore(), [ 2, 3 ]);
var api = new AlphaTabApi<MyControl>(...);
api.RenderScore(GenerateScore(), new double[] { 2, 3 });
val api = AlphaTabApi<MyControl>(...)
api.renderScore(generateScore(), alphaTab.collections.DoubleList(2, 3));