noteMouseMove
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​
Parameters | Type | Summary |
---|---|---|
noteJavaScript | alphaTab.model.Note | Note on which the mouse was hovered over during mouse down. |
note.net | AlphaTab.Model.Note | Note on which the mouse was hovered over during mouse down. |
noteAndroid | alphaTab.model.Note | Note on which the mouse was hovered over during mouse down. |
Examples​
- JavaScript
- HTML
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.noteMouseMove.on((note) => {
changeNote(note)
});
document.querySelector('#alphaTab').addEventListener('alphaTab.noteMouseMove', (e) => {
var note = e.detail;
changeNote(note)
}, false);
var api = new AlphaTabApi<MyControl>(...);
api.NoteMouseMove.On(note =>
{
ChangeNote(note);
});
val api = AlphaTabApi<MyControl>(...)
api.noteMouseMove.on { note ->
changeNote(note)
}