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.

changeTrackMute(tracks: Track[], mute: boolean): void
ParameterSummary
tracksAll

The list of track to mute or unmute.

muteAll

If set to true, the tracks will be muted. If false they are unmuted.

Examples​

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