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
fun renderTracks(tracks: alphaTab.collections.List<alphaTab.model.Track>): UnitAndroid

Parameters​

ParametersTypeSummary
tracksJavaScriptalphaTab.model.Track[]

The tracks that should be rendered.

tracks.netAlphaTab.Model.Track[]

The tracks that should be rendered.

tracksAndroidalphaTab.collections.List<alphaTab.model.Track>

The tracks that should be rendered.

Returns​

Nothing

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);