Since: 0.9.7

beatMouseDown

Description

This event is fired whenever a the user presses the mouse button on a beat.

beatMouseDown.net

Types

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

Parameters

ParametersTypeSummary
beatJavaScriptalphaTab.model.BeatThe new beat that is now being played..
originalEventJavaScript & jQueryMouseEventThe original mouse event that lead to trigger of the beat event. For the DOM event it is stored in the event.originalEvent.
beat.netAlphaTab.Model.BeatThe new beat that is now being played..

Examples

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