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
Receiver s. |
int |
getMaxTransmitters()
Get the number of the
Transmitter s. |
long |
getMicrosecondPosition()
Get the
MidiDevice 's timeStamp. |
Receiver |
getReceiver()
Get the default
Receiver . |
List<Receiver> |
getReceivers()
Get the all of
Receiver s. |
Transmitter |
getTransmitter()
Get the default
Transmitter . |
List<Transmitter> |
getTransmitters()
Get the all of
Transmitter s. |
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.MidiUnavailableException
void close()
MidiDevice
. This method must be called at finishing to use the instance.boolean isOpen()
MidiDevice
opened.long getMicrosecondPosition()
MidiDevice
's timeStamp.int getMaxReceivers()
Receiver
s.Receiver
s.int getMaxTransmitters()
Transmitter
s.Transmitter
s.@NonNull Receiver getReceiver() throws MidiUnavailableException
Receiver
.Receiver
.MidiUnavailableException
@NonNull List<Receiver> getReceivers()
Receiver
s.Receiver
s.@NonNull Transmitter getTransmitter() throws MidiUnavailableException
Transmitter
.Transmitter
.MidiUnavailableException
@NonNull List<Transmitter> getTransmitters()
Transmitter
s.Transmitter
s.