Skip to main content

activeBeatsChanged

since 1.3.0-alpha.293

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

Types

function(activeBeatsChangedEventArgs)JavaScript
Action<AlphaTab.Synth.ActiveBeatsChangedEventArgs>.net

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.

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.

Examples

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