Skip to main content

playbackRange

since 0.9.4

Description​

Gets or sets the range of the song that should be played. The range is defined in midi ticks or the whole song is played if the range is set to null

playbackRangeJavaScript
alphaTab('playbackRange')jQuery
PlaybackRange.net
playbackRangeAndroid

Types​

alphaTab.synth.PlaybackRangeJavaScript
AlphaTab.Synth.PlaybackRange.net
alphaTab.synth.PlaybackRangeAndroid

PlaybackRange Properties​

PropertyTypeSummary
startTickJavaScript
StartTick.net
startTickAndroid
int

The position in midi ticks from where the song should start

endTickJavaScript
EndTick.net
endTickAndroid
int

The position in midi ticks to where the song should be played.

Default Value​

null

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playbackRange = { startTick: 1000, endTick: 50000 };