Overview  Package   Class  Tree  Index 

be.lassi.control.midi
Class MidiSystemDevices

java.lang.Object
  extended by 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.


Constructor Summary
MidiSystemDevices()
           
 
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
 

Constructor Detail

MidiSystemDevices

public MidiSystemDevices()
Method Detail

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

Overview  Package   Class  Tree  Index 
Lighting Assistant 1.2