Skip to main content

playbackRangeChanged

since 1.3.0-alpha.195

Description

This event is fired when the playback range changed.

playbackRangeChangedJavaScript
alphaTab.playbackRangeChangedjQuery
alphaTab.playbackRangeChangedHTML
PlaybackRangeChanged.net

Types

function(e)JavaScript
Action<PlaybackRangeChangedEventArgs>.net

Parameters

ParametersTypeSummary
argsJavaScriptalphaTab.synth.PlaybackRangeChangedEventArgs

The information about the changed playback range.

args.netAlphaTab.Synth.PlaybackRangeChangedEventArgs

The information about the changed playback range.

PlaybackRangeChangedEventArgs Properties

ParametersTypeSummary
playbackRangeJavaScriptalphaTab.synth.PlaybackRange

The new playback range or null if no range is selected. (see PlaybackRange)

PlaybackRange.netAlphaTab.Synth.PlaybackRange

The new playback range or null if no range is selected. (see PlaybackRange)

Examples

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playbackRangeChanged.on((args) => {
if (args.playbackRange) {
highlightRangeInProgressBar(args.playbackRange.startTick, args.playbackRange.endTick);
} else {
clearHighlightInProgressBar();
}
});