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 |
playbackRangeAndroid |
Types​
alphaTab.synth.PlaybackRangeJavaScript |
AlphaTab.Synth.PlaybackRange.net |
alphaTab.synth.PlaybackRangeAndroid |
PlaybackRange Properties​
Property | Type | Summary |
---|---|---|
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​
- JavaScript
- jQuery
- C#
- Android
const 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 };
val api = AlphaTabApi<MyControl>(...)
api.playbackRange = PlaybackRange.apply {
startTick = 1000
endTick = 50000
}