org.tritonus.midi.device.alsa
Class AlsaMidiChannel

java.lang.Object
  extended byorg.tritonus.midi.device.alsa.AlsaMidiChannel
All Implemented Interfaces:
MidiChannel

public class AlsaMidiChannel
extends Object
implements MidiChannel


Constructor Summary
AlsaMidiChannel(Receiver receiver, int nChannel)
           
 
Method Summary
 void allNotesOff()
           
 void allSoundOff()
           
 void controlChange(int nController, int nValue)
           
protected  int getChannel()
           
 int getChannelPressure()
           
 int getController(int nController)
           
 boolean getMono()
           
 boolean getMute()
           
 boolean getOmni()
           
 int getPitchBend()
           
 int getPolyPressure(int nNoteNumber)
           
 int getProgram()
           
 boolean getSolo()
           
 boolean localControl(boolean bOn)
           
 void noteOff(int nNoteNumber)
           
 void noteOff(int nNoteNumber, int nVelocity)
           
 void noteOn(int nNoteNumber, int nVelocity)
           
 void programChange(int nProgram)
           
 void programChange(int nBank, int nProgram)
           
 void resetAllControllers()
           
protected  void sendMessage(MidiMessage message)
           
 void setChannelPressure(int nPressure)
           
 void setMono(boolean bMono)
           
 void setMute(boolean bMute)
           
 void setOmni(boolean bOmni)
           
 void setPitchBend(int nBend)
           
 void setPolyPressure(int nNoteNumber, int nPressure)
           
 void setSolo(boolean bSolo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlsaMidiChannel

public AlsaMidiChannel(Receiver receiver,
                       int nChannel)
Method Detail

getChannel

protected int getChannel()

sendMessage

protected void sendMessage(MidiMessage message)

noteOn

public void noteOn(int nNoteNumber,
                   int nVelocity)
Specified by:
noteOn in interface MidiChannel

noteOff

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

noteOff

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

setPolyPressure

public void setPolyPressure(int nNoteNumber,
                            int nPressure)
Specified by:
setPolyPressure in interface MidiChannel

getPolyPressure

public int getPolyPressure(int nNoteNumber)
Specified by:
getPolyPressure in interface MidiChannel

setChannelPressure

public void setChannelPressure(int nPressure)
Specified by:
setChannelPressure in interface MidiChannel

getChannelPressure

public int getChannelPressure()
Specified by:
getChannelPressure in interface MidiChannel

controlChange

public void controlChange(int nController,
                          int nValue)
Specified by:
controlChange in interface MidiChannel

getController

public int getController(int nController)
Specified by:
getController in interface MidiChannel

programChange

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

programChange

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

getProgram

public int getProgram()
Specified by:
getProgram in interface MidiChannel

setPitchBend

public void setPitchBend(int nBend)
Specified by:
setPitchBend in interface MidiChannel

getPitchBend

public int getPitchBend()
Specified by:
getPitchBend 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

setMute

public void setMute(boolean bMute)
Specified by:
setMute in interface MidiChannel

getMute

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

setSolo

public void setSolo(boolean bSolo)
Specified by:
setSolo in interface MidiChannel

getSolo

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