public interface MidiDevice
| Modifier and Type | Interface and Description |
|---|---|
static class |
MidiDevice.Info
Represents the
MidiDevice's information |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the
MidiDevice. |
MidiDevice.Info |
getDeviceInfo()
Get the device information
|
int |
getMaxReceivers()
Get the number of the
Receivers. |
int |
getMaxTransmitters()
Get the number of the
Transmitters. |
long |
getMicrosecondPosition()
Get the
MidiDevice's timeStamp. |
Receiver |
getReceiver()
Get the default
Receiver. |
List<Receiver> |
getReceivers()
Get the all of
Receivers. |
Transmitter |
getTransmitter()
Get the default
Transmitter. |
List<Transmitter> |
getTransmitters()
Get the all of
Transmitters. |
boolean |
isOpen()
Check if the
MidiDevice opened. |
void |
open()
Open the
MidiDevice. |
@NonNull MidiDevice.Info getDeviceInfo()
void open() throws MidiUnavailableException
MidiDevice. This method must be called at getting the new instance.MidiUnavailableExceptionvoid close()
MidiDevice. This method must be called at finishing to use the instance.boolean isOpen()
MidiDevice opened.long getMicrosecondPosition()
MidiDevice's timeStamp.int getMaxReceivers()
Receivers.Receivers.int getMaxTransmitters()
Transmitters.Transmitters.@NonNull Receiver getReceiver() throws MidiUnavailableException
Receiver.Receiver.MidiUnavailableException@NonNull List<Receiver> getReceivers()
Receivers.Receivers.@NonNull Transmitter getTransmitter() throws MidiUnavailableException
Transmitter.Transmitter.MidiUnavailableException@NonNull List<Transmitter> getTransmitters()
Transmitters.Transmitters.