Skip to content

onNoteOff()

Set up a function to call whenever a note is released on the device.

Parameters

Once an object midiin has been created, you can use the following function:

midiin.onNoteOff(action)
Parameter Type Default Description
action function required The function to call; it receives four parameters: eventType (128), channel (0 to 15), data1 (the pitch, 0 to 127), and data2 (unused).