Since: 0.9.4

playedBeatChanged

Description

This event is fired when the played beat changed.

playedBeatChanged.net

Types

function(beat)JavaScript
Action<AlphaTab.Model.Beat>.net

Parameters

ParametersTypeSummary
beatJavaScriptalphaTab.model.BeatThe new beat that is now being played..
beat.netAlphaTab.Model.BeatThe new beat that is now being played..

Examples

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.playedBeatChanged.on((beat) => {
updateFretboard(beat);
});