Skip to main content

changeTrackSolo

since 0.9.4

Description​

Changes the given tracks to be played solo or not. If any track is set to solo, all other tracks are muted, unless they are also flagged as solo. This will result in a solo playback of the primary and secondary midi channel that the track uses for playback. If the track shares the channels with another track, all related tracks will be played as they cannot be distinguished.

Signatures​

function changeTrackSolo(tracks, solo)JavaScript
alphaTab('soloTracks', tracks, solo)jQuery
void ChangeTrackSolo(Track[] tracks, bool solo).net

Parameters​

ParametersTypeSummary
tracksJavaScriptalphaTab.model.Tracks[]

The array of tracks that should be played solo.

tracks.netAlphaTab.Model.Tracks[]

The array of tracks that should be played solo.

soloAllbool

A value indicating whether the track should be played solo or not.

Returns​

Nothing

Examples​

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackSolo([api.score.tracks[0], api.score.tracks[1]], true);
var at = $('#alphaTab');
var tracks = at.alphaTab('tracks');
at.alphaTab('soloTracks', [tracks[0], tracks[1]], true);
var api = new AlphaTabApi<MyControl>(...);
api.ChangeTrackSolo(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, true);