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.
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​
Parameters | Type | Summary |
---|---|---|
tracksJavaScript | alphaTab.model.Tracks[] | The array of tracks that should be played solo. |
tracks.net | AlphaTab.Model.Tracks[] | The array of tracks that should be played solo. |
tracksAndroid | alphaTab.collections.List<alphaTab.model.Track> | The array of tracks that should be played solo. |
soloAll | bool | A value indicating whether the track should be played solo or not. |
Returns​
Nothing
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackSolo([api.score.tracks[0], api.score.tracks[1]], true);
const at = $('#alphaTab');
const 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);
val api = AlphaTabApi<MyControl>(...)
api.changeTrackSolo(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), true);