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.

changeTrackSolo(tracks: Track[], solo: boolean): void
ParameterSummary
tracksAll

The list of tracks to play solo or not.

soloAll

If set to true, the tracks will be added to the solo list. If false, they are removed.

Examples​

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