Skip to main content

renderTracks

since 0.9.4

Description

Initiates a rendering of the tracks. All tracks must be from the same score, otherwise an error is raised.

Signatures

function renderTracks(tracks)JavaScript
alphaTab('renderTracks', tracks)jQuery
bool RenderTracks(Tracks[] track).net

Parameters

ParametersTypeSummary
tracksJavaScriptalphaTab.model.Track[]

The tracks that should be rendered.

tracks.netAlphaTab.Model.Track[]

The tracks that should be rendered.

Returns

Nothing

Examples

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);
var at = $('#alphaTab');
var score = at.alphaTab('score');
at.alphaTab('renderTracks', [
api.score.tracks[2],
api.score.tracks[3]
]);
var api = new AlphaTabApi<MyControl>(...);
api.RenderTracks(new []{
api.Score.Tracks[2],
api.Score.Tracks[3]
});