net.charlesames.music.midi
Class GeneralMidiChannel

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

public class GeneralMidiChannel
extends MidiChannel

A GeneralMidiChannel instance associates a unique MIDI channel (1-16) with a unique GeneralMidiProgram.

Author:
Charles Ames

Constructor Summary
GeneralMidiChannel(int channel, MidiDevice device, GeneralMidiProgram generalMidiProgram)
          Constructor for GeneralMidiChannel instances.
 
Method Summary
 boolean equals(GeneralMidiChannel other)
          Test if this GeneralMidiChannel instance has the same content as another GeneralMidiChannel instance.
 GeneralMidiProgram getGeneralMidiProgram()
          Getter for the MidiProgram property.
 
Methods inherited from class net.charlesames.music.midi.MidiChannel
getBank, getChannel, getMidiDevice, getMidiNote, getProgram, setBank, setMidiNote, setProgram
 
Methods inherited from class net.charlesames.music.midi.MidiEntity
dispose, getContainer, getID, getName, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralMidiChannel

public GeneralMidiChannel(int channel,
                          MidiDevice device,
                          GeneralMidiProgram generalMidiProgram)
Constructor for GeneralMidiChannel instances.

Parameters:
channel - The MIDI channel (1-16)
device - The MIDI device.
generalMidiProgram - The GeneralMidiChannel program.
Method Detail

getGeneralMidiProgram

public GeneralMidiProgram getGeneralMidiProgram()
Getter for the MidiProgram property.

Returns:
The assigned MidiProgram value.

equals

public boolean equals(GeneralMidiChannel other)
Test if this GeneralMidiChannel instance has the same content as another GeneralMidiChannel instance.

Parameters:
other - The other GeneralMidiChannel instance.
Returns:
True if the two entities have the same content. False otherwise.