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
playbackRangeJavaScript |
alphaTab('playbackRange')jQuery |
PlaybackRange.net |
Types​
alphaTab.synth.PlaybackRangeJavaScript |
AlphaTab.Synth.PlaybackRange.net |
PlaybackRange Properties​
Property | Type | Summary |
---|---|---|
startTickJavaScript StartTick.net | int | The position in midi ticks from where the song should start |
endTickJavaScript EndTick.net | 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 };