renderTracks
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​
Parameters | Type | Summary |
---|---|---|
tracksJavaScript | alphaTab.model.Track[] | The tracks that should be rendered. |
tracks.net | AlphaTab.Model.Track[] | The tracks that should be rendered. |
tracksAndroid | alphaTab.collections.List<alphaTab.model.Track> | The tracks that should be rendered. |
Returns​
Nothing
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);
const at = $('#alphaTab');
const 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]
});
val api = AlphaTabApi<MyControl>(...)
api.renderTracks(alphaTab.collections.List(
api.score.tracks[2],
api.score.tracks[3]
}