changeTrackMute
Description​
Changes the given tracks to be muted or not. This will result in a muting of the primary and secondary midi channel that the track uses for playback. If the track shares the channels with another track, all tracks will be muted as during playback they cannot be distinguished.
Signatures​
function changeTrackMute(tracks, mute)JavaScript |
alphaTab('muteTracks', tracks, mute)jQuery |
void ChangeTrackMute(Track[] tracks, bool mute).net |
fun changeTrackMute(tracks: alphaTab.collections.List<alphaTab.model.Track>, mute: Boolean): UnitAndroid |
Parameters​
Parameters | Type | Summary |
---|---|---|
tracksJavaScript | alphaTab.model.Tracks[] | The array of tracks that should be muted. |
tracks.net | AlphaTab.Model.Tracks[] | The array of tracks that should be muted. |
tracksAndroid | alphaTab.collections.List<alphaTab.model.Track> | The array of tracks that should be muted. |
muteAll | bool | value indicating whether the track should be muted or not. |
Returns​
Nothing
Examples​
- JavaScript
- jQuery
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);
const at = $('#alphaTab');
const tracks = at.alphaTab('tracks');
at.alphaTab('muteTracks', [tracks[0], tracks[1]], true);
var api = new AlphaTabApi<MyControl>(...);
api.ChangeTrackMute(new Track[] { api.Score.Tracks[0], api.Score.Tracks[1] }, true);
val api = AlphaTabApi<MyControl>(...)
api.changeTrackMute(alphaTab.collections.List<alphaTab.model.Track>(api.score.tracks[0], api.score.tracks[1]), true);