Skip to main content

activeBeatsChanged

since 1.2.3

Description​

This event is fired when the currently active beats across all tracks change. Unlike the playedBeatChanged event this event contains the beats of all tracks and voices independent of them being rendered.

activeBeatsChangedJavaScript
alphaTab.activeBeatsChangedjQuery
alphaTab.activeBeatsChangedHTML
ActiveBeatsChanged.net
activeBeatsChangedAndroid

Types​

function(activeBeatsChangedEventArgs)JavaScript
Action<AlphaTab.Synth.ActiveBeatsChangedEventArgs>.net
(args : AlphaTab.Synth.ActiveBeatsChangedEventArgs) -> UnitAndroid

Parameters​

ParametersTypeSummary
beatJavaScriptalphaTab.synth.ActiveBeatsChangedEventArgs

The event args containing the info about the active beats.

beat.netAlphaTab.Synth.ActiveBeatsChangedEventArgs

The event args containing the info about the active beats.

beatAndroidalphaTab.synth.ActiveBeatsChangedEventArgs

The event args containing the info about the active beats.

ActiveBeatsChangedEventArgs Properties​

ParametersTypeSummary
activeBeatsJavaScriptalphaTab.model.Beat[]

The currently active beats across all tracks and voices.

ActiveBeats.netIList<AlphaTab.Model.Beat>

The currently active beats across all tracks and voices.

activeBeatsAndroidalphaTab.collections.List<alphaTab.model.Beat>

The currently active beats across all tracks and voices.

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.activeBeatsChanged.on(args => {
updateHighlights(args.activeBeats);
});