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

Types​

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

PlaybackRange Properties​

PropertyTypeSummary
startTickJavaScript
StartTick.net
intThe position in midi ticks from where the song should start
endTickJavaScript
EndTick.net
intThe position in midi ticks to where the song should be played.

Default Value​

null

Examples​

var api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playbackRange = { startTick: 1000, endTick: 50000 };
$('#alphaTab').alphaTab('playbackRange', { startTick: 1000, endTick: 50000 })
var api = new AlphaTabApi<MyControl>(...);
api.PlaybackRange = new PlaybackRange { StartTick = 1000, EndTick = 50000 };