Skip to main content

playedBeatChanged

since 0.9.4

Description​

This event is fired when the played beat changed.

playedBeatChangedJavaScript
alphaTab.playedBeatChangedjQuery
alphaTab.playedBeatChangedHTML
PlayedBeatChanged.net
playedBeatChangedAndroid

Types​

function(beat)JavaScript
Action<AlphaTab.Model.Beat>.net
(beat: alphaTab.model.Beat): UnitAndroid

Parameters​

ParametersTypeSummary
beatJavaScriptalphaTab.model.Beat

The new beat that is now being played..

beat.netAlphaTab.Model.Beat

The new beat that is now being played..

beatAndroidalphaTab.model.Beat

The new beat that is now being played..

Examples​

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