Since: 0.9.4

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

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.
muteAllboolvalue indicating whether the track should be muted or not.

Returns

Nothing

Examples

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.changeTrackMute([api.score.tracks[0], api.score.tracks[1]], true);
var at = $('#alphaTab');
var 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);