Jazz-Soft.net
We make it sound!
Home » Documentation » Jazz-Plugin » Reference » OnDisconnectMidiOutIn()

OnDisconnectMidiOutIn()

Function

OnDisconnectMidiOutIn ( func ) or OnDisconnectMidiOutIn ( ) - set or remove handler for MIDI-In Port Disconnect event.

func must be a function with a single parameter which is the name of the disconnected port.

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

Example

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

See also