be.lassi.control.midi
Class MidiSystemDevices
java.lang.Object
be.lassi.control.midi.MidiSystemDevices
- All Implemented Interfaces:
- MidiDevices
public class MidiSystemDevices
- extends java.lang.Object
- implements MidiDevices
Provides access to the MIDI devices that are currently
available on the system, by requesting this information
from MidiSystem
.
Method Summary |
javax.sound.midi.MidiDevice |
getInput(java.lang.String name)
Gets the midi input device with given name. |
java.util.List<java.lang.String> |
getInputNames()
Gets the names of all midi input devices. |
javax.sound.midi.MidiDevice |
getOutput(java.lang.String name)
Gets the midi output device with given name. |
java.util.List<java.lang.String> |
getOutputNames()
Gets the names of all midi output devices. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MidiSystemDevices
public MidiSystemDevices()
getInput
public javax.sound.midi.MidiDevice getInput(java.lang.String name)
- Gets the midi input device with given name.
- Specified by:
getInput
in interface MidiDevices
- Parameters:
name
- the device name
- Returns:
- the midi input device
getInputNames
public java.util.List<java.lang.String> getInputNames()
- Gets the names of all midi input devices.
- Specified by:
getInputNames
in interface MidiDevices
- Returns:
- the midi input device names
getOutput
public javax.sound.midi.MidiDevice getOutput(java.lang.String name)
- Gets the midi output device with given name.
- Specified by:
getOutput
in interface MidiDevices
- Parameters:
name
- the device name
- Returns:
- the midi output device
getOutputNames
public java.util.List<java.lang.String> getOutputNames()
- Gets the names of all midi output devices.
- Specified by:
getOutputNames
in interface MidiDevices
- Returns:
- the midi output device names