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

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.

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

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​

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