org.tritonus.share.midi
Class TMidiChannel

java.lang.Object
  extended by org.tritonus.share.midi.TMidiChannel
All Implemented Interfaces:
MidiChannel

public abstract class TMidiChannel
extends java.lang.Object
implements MidiChannel

Base class for MidiChannel implementations.

This base class serves two purposes:

  1. It contains a channel number property so that the MidiChannel object knows its own MIDI channel number.
  2. It maps some of the methods to others.


Method Summary
 void allNotesOff()
           
 void allSoundOff()
           
 boolean getMono()
           
 boolean getOmni()
           
 boolean localControl(boolean bOn)
           
 void noteOff(int nNoteNumber)
           
 void programChange(int nBank, int nProgram)
           
 void resetAllControllers()
           
 void setMono(boolean bMono)
           
 void setOmni(boolean bOmni)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sound.midi.MidiChannel
controlChange, getChannelPressure, getController, getMute, getPitchBend, getPolyPressure, getProgram, getSolo, noteOff, noteOn, programChange, setChannelPressure, setMute, setPitchBend, setPolyPressure, setSolo
 

Method Detail

noteOff

public void noteOff(int nNoteNumber)
Specified by:
noteOff in interface MidiChannel

programChange

public void programChange(int nBank,
                          int nProgram)
Specified by:
programChange in interface MidiChannel

resetAllControllers

public void resetAllControllers()
Specified by:
resetAllControllers in interface MidiChannel

allNotesOff

public void allNotesOff()
Specified by:
allNotesOff in interface MidiChannel

allSoundOff

public void allSoundOff()
Specified by:
allSoundOff in interface MidiChannel

localControl

public boolean localControl(boolean bOn)
Specified by:
localControl in interface MidiChannel

setMono

public void setMono(boolean bMono)
Specified by:
setMono in interface MidiChannel

getMono

public boolean getMono()
Specified by:
getMono in interface MidiChannel

setOmni

public void setOmni(boolean bOmni)
Specified by:
setOmni in interface MidiChannel

getOmni

public boolean getOmni()
Specified by:
getOmni in interface MidiChannel