org.tritonus.share.midi
Class TMidiChannel
java.lang.Object
org.tritonus.share.midi.TMidiChannel
- All Implemented Interfaces:
- MidiChannel
public abstract class TMidiChannel
- extends Object
- implements MidiChannel
Base class for MidiChannel implementations.
This base class serves two purposes:
- It contains a channel number property so that the MidiChannel
object knows its own MIDI channel number.
- It maps some of the methods to others.
- Author:
- Matthias Pfisterer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sound.midi.MidiChannel |
controlChange, getController, getChannelPressure, getMute, getPitchBend, getPolyPressure, getProgram, getSolo, noteOff, noteOn, programChange, setChannelPressure, setMute, setPitchBend, setPolyPressure, setSolo |
TMidiChannel
protected TMidiChannel(int nChannel)
getChannel
protected int getChannel()
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
Copyright © 2012. All Rights Reserved.