Skip to main content

noteMouseMove

since 1.2.3

Description

This event is fired whenever the user moves the mouse over a note after the user already pressed the button on a note. It is only fired if includeNoteBounds was set to true because only then this hit detection can be done. A move on a note is considered if the note head or the note number on tabs are clicked as documented in the boundsLookup

noteMouseMoveJavaScript
alphaTab.noteMouseMovejQuery
alphaTab.noteMouseMoveHTML
NoteMouseMove.net
noteMouseMoveAndroid

Types

function(note)JavaScript
Action<AlphaTab.Model.Note>.net
(note : alphaTab.model.Note) -> UnitAndroid

Parameters

ParametersTypeSummary
noteJavaScriptalphaTab.model.Note

Note on which the mouse was hovered over during mouse down.

note.netAlphaTab.Model.Note

Note on which the mouse was hovered over during mouse down.

noteAndroidalphaTab.model.Note

Note on which the mouse was hovered over during mouse down.

Examples

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.noteMouseMove.on((note) => {
changeNote(note)
});