net.charlesames.music.midi
Class MidiDevice

java.lang.Object
  extended by net.charlesames.utility.common.Disposable
      extended by net.charlesames.music.midi.MidiEntity
          extended by net.charlesames.music.midi.MidiDevice

public class MidiDevice
extends MidiEntity

A MidiDevice instance manages a collection of 16 MidiChannel objects.

Author:
Charles Ames

Method Summary
 java.util.SortedMap<java.lang.Integer,MidiChannel> getMidiChannels()
          Get the channels running on this device.
 MidiFile getMidiFile()
          Get the MidiFile instance.
 java.lang.String getName()
          Get the MIDI device name.
 
Methods inherited from class net.charlesames.music.midi.MidiEntity
dispose, getContainer, getID, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMidiFile

public MidiFile getMidiFile()
Get the MidiFile instance.

Returns:
The MidiFile instance.

getName

public java.lang.String getName()
Get the MIDI device name.

Overrides:
getName in class MidiEntity
Returns:
The MIDI device name.

getMidiChannels

public java.util.SortedMap<java.lang.Integer,MidiChannel> getMidiChannels()
Get the channels running on this device.

Returns:
A collection of MidiChannel instances, indexed by channel number.