net.charlesames.music.midi
Class GeneralMidiChannel
java.lang.Object
net.charlesames.utility.common.Disposable
net.charlesames.music.midi.MidiEntity
net.charlesames.music.midi.MidiChannel
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.