MidiDevice


Represents the information about a MIDI device as returned by the Java MIDI System. This can either represent a physical MIDI input or MIDI output, or a virtual MIDI device (such as the Java Sound Synthesizer). Some MidiDevices can be opened for both input and output, however this is platform dependent, so the best way to use MidiDevices is to have separate ones for input and output. This is why the devices are further subclasses into MidiInputDevice and MidiOutputDevice. You can pass an object when creating an input. Common methods implemented by this object will be registered with the MidiInput. These methods are noteOnReceived(Note), noteOffReceived(Note), controllerChangeReceived(Controller), programChangeReceived(ProgramChange) and sysexReceived(SysexMessage). An additional channel can be given to filter out a specific channel for note and controller change messages.