isNoteHeld()

Description

Function to detect, if a note is held or not.

isNoteHeld can only be called inside the onNote callback function.

Available in: processor.

Return Values

ReturnsĀ true, if onNote has received a note-on event, and false, if onNote has received a corresponding note-off event. The note events must come from outside the script.

Example

--detect if a note is held
function onNote(event)
    print(isNoteHeld())
    waitForRelease()
    print(isNoteHeld())
end

See Also: onNote