noteMouseUp
Description​
This event is fired whenever the user releases the mouse after a mouse press on a note.
This event is fired regardless of whether the mouse was released on a note.
The parameter is null if the mouse was released somewhere beside the 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
noteMouseUpJavaScript |
alphaTab.noteMouseUpjQuery |
alphaTab.noteMouseUpHTML |
NoteMouseUp.net |
noteMouseUpAndroid |
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 released over after mouse down. Might be null if no note could be found in near location. |
note.net | AlphaTab.Model.Note | Note on which the mouse was released over after mouse down. Might be null if no note could be found in near location. |
noteAndroid | alphaTab.model.Note | Note on which the mouse was released over after mouse down. Might be null if no note could be found in near location. |
Examples​
- JavaScript
- HTML
- C#
- Android
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.noteMouseUp.on((note) => {
api.playNote(note);
});
document.querySelector('#alphaTab').addEventListener('alphaTab.noteMouseUp', (e) => {
const note = e.detail;
api.playNote(note);
}, false);
var api = new AlphaTabApi<MyControl>(...);
api.NoteMouseUp.On(note =>
{
api.PlayNote(note);
});
val api = AlphaTabApi<MyControl>(...)
api.noteMouseUp.on { note ->
api.playNote(note)
}