Use the JavaScript MIDI object

The MIDI object contains a number of convenient and easy to use functions that can be used when writing your scripts.

Note:  The MIDI object is a property of the global object, which means that you do not instantiate it but access its functions much like you would the JavaScript Math object. An example is calling MIDI.allNotesOff() directly.

MIDI object properties

Use the following method names and arguments to perform these functions:

Pass events through and send all notes off message when receiving controller 20