Skip to main content

playbackRangeChanged

since 1.2.3

Description​

This event is fired when the playback range changed.

playbackRangeChangedJavaScript
alphaTab.playbackRangeChangedjQuery
alphaTab.playbackRangeChangedHTML
PlaybackRangeChanged.net
playbackRangeChangedAndroid

Types​

function(e)JavaScript
Action<PlaybackRangeChangedEventArgs>.net
(e: PlaybackRangeChangedEventArgs) : UnitAndroid

Parameters​

ParametersTypeSummary
argsJavaScriptalphaTab.synth.PlaybackRangeChangedEventArgs

The information about the changed playback range.

args.netAlphaTab.Synth.PlaybackRangeChangedEventArgs

The information about the changed playback range.

argsAndroidalphaTab.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)

playbackRangeAndroidalphaTab.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();
}
});