Since: 0.9.4

playbackRange

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

Types

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

PlaybackRange Properties

PropertyTypeSummary

int
The position in midi ticks from where the song should start

int
The 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 };