afterglow.coremidi4j

add-environment-change-handler

(add-environment-change-handler f)

Arranges for the supplied function to be called whenever the MIDI environment changes, in other words when a MIDI device is added or removed. This namespace can only be loaded if the CoreMIDI4J extension is present in the Java extensions directory.

Returns true if the handler was added, or false if the CoreMIDI4J extension was unable to load its native library, and so is inactive.