changeTrackSolo
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.
- JavaScript
- C#
- Kotlin
Parameter | Summary |
---|---|
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​
- JavaScript
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackSolo([api.score.tracks[0], api.score.tracks[1]], true);
var api = new AlphaTabApi<MyControl>(...);
api.ChangeTrackSolo(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, true);
val api = AlphaTabApi<MyControl>(...)
api.changeTrackSolo(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), true);