API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.sound.midi. MidiDevice View Source
Author(s)
Kara Kytle
Florian Bomers
Since
Version
1.39, 05/11/17
Serial
Hierarchy
 MidiDevice
Subinterfaces
Description
public interface MidiDevice
  MidiDevice is the base interface for all MIDI devices.
Methods
Hide/Show inherited methods
public void close ()
  Closes the device, indicating that the device should now release any system resources it is using.
public Info getDeviceInfo ()
  Obtains information about the device, including its Java class and Strings containing its name, vendor, and description.
public int getMaxReceivers ()
  Obtains the maximum number of MIDI IN connections available on this MIDI device for receiving MIDI data.
public int getMaxTransmitters ()
  Obtains the maximum number of MIDI OUT connections available on this MIDI device for transmitting MIDI data.
public long getMicrosecondPosition ()
  Obtains the current time-stamp of the device, in microseconds.
public Receiver getReceiver () throws MidiUnavailableException
  Obtains a MIDI IN receiver through which the MIDI device may receive MIDI data.
public List<Receiver> getReceivers ()
  Returns all currently active, non-closed receivers connected with this MidiDevice.
public Transmitter getTransmitter () throws MidiUnavailableException
  Obtains a MIDI OUT connection from which the MIDI device will transmit MIDI data The returned transmitter must be closed when the application has finished using it.
public List<Transmitter> getTransmitters ()
  Returns all currently active, non-closed transmitters connected with this MidiDevice.
public boolean isOpen ()
  Reports whether the device is open.
public void open () throws MidiUnavailableException
  Opens the device, indicating that it should now acquire any system resources it requires and become operational.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar