Jazz-Soft.net

We make it sound!

Home » Documentation » Jazz-Plugin » Reference » OnConnectMidiIn()

OnConnectMidiIn()

Function

OnConnectMidiIn ( func ) or OnConnectMidiIn ( ) - set or remove handler for MIDI-In Port Connect event.

func must be a function with a single parameter which is the name of the newly-connected port.

Monitoring MIDI connections may be a resource-consuming operation. Don't use it unless you really need it.

Example

Jazz.OnConnectMidiIn(function(name){ alert(name);});  // set handler
Jazz.OnConnectMidiIn();                               // remove handler

See also