Skip to main content

changeTrackMute

since 0.9.4

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​

ParametersTypeSummary
tracksJavaScriptalphaTab.model.Tracks[]

The array of tracks that should be muted.

tracks.netAlphaTab.Model.Tracks[]

The array of tracks that should be muted.

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

The array of tracks that should be muted.

muteAllbool

value indicating whether the track should be muted or not.

Returns​

Nothing

Examples​

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