Function to suspend the execution of the onNote callback until the note that called onNote gets released either by a corresponding note-off or sustain pedal off.
Available in: Processor.
-- print the note length
local noteOnTime = getTime()
local noteOffTime = getTime()
local noteLength = noteOffTime - noteOnTime