uk.org.toot.synth
Class SynthChannel

java.lang.Object
  extended by uk.org.toot.synth.SynthChannel
All Implemented Interfaces:
javax.sound.midi.MidiChannel
Direct Known Subclasses:
PolyphonicSynthChannel

public abstract class SynthChannel
extends java.lang.Object
implements javax.sound.midi.MidiChannel

A SynthChannel is a MidiChannel.

Author:
st

Constructor Summary
SynthChannel()
           
 
Method Summary
abstract  void allNotesOff()
           
abstract  void allSoundOff()
           
 void controlChange(int arg0, int arg1)
           
 float getBendFactor()
           
 int getChannelPressure()
           
 int getController(int arg0)
           
 boolean getMono()
           
 boolean getMute()
           
 boolean getOmni()
           
 int getPitchBend()
           
 int getPolyPressure(int arg0)
           
 int getProgram()
           
 boolean getSolo()
           
 boolean localControl(boolean arg0)
           
static float midiFreq(int pitch)
           
abstract  void noteOff(int pitch)
           
 void noteOff(int pitch, int velocity)
           
abstract  void noteOn(int pitch, int velocity)
           
 void programChange(int arg0)
           
 void programChange(int arg0, int arg1)
           
 void resetAllControllers()
           
 void setChannelPressure(int arg0)
           
 void setLocation(java.lang.String location)
           
 void setMono(boolean mono)
           
 void setMute(boolean arg0)
           
 void setOmni(boolean arg0)
           
 void setPitchBend(int bend)
           
 void setPolyPressure(int arg0, int arg1)
           
 void setSolo(boolean arg0)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynthChannel

public SynthChannel()
Method Detail

setLocation

public void setLocation(java.lang.String location)

midiFreq

public static float midiFreq(int pitch)

noteOn

public abstract void noteOn(int pitch,
                            int velocity)
Specified by:
noteOn in interface javax.sound.midi.MidiChannel

noteOff

public abstract void noteOff(int pitch)
Specified by:
noteOff in interface javax.sound.midi.MidiChannel

noteOff

public void noteOff(int pitch,
                    int velocity)
Specified by:
noteOff in interface javax.sound.midi.MidiChannel

allNotesOff

public abstract void allNotesOff()
Specified by:
allNotesOff in interface javax.sound.midi.MidiChannel

allSoundOff

public abstract void allSoundOff()
Specified by:
allSoundOff in interface javax.sound.midi.MidiChannel

controlChange

public void controlChange(int arg0,
                          int arg1)
Specified by:
controlChange in interface javax.sound.midi.MidiChannel

getController

public int getController(int arg0)
Specified by:
getController in interface javax.sound.midi.MidiChannel

resetAllControllers

public void resetAllControllers()
Specified by:
resetAllControllers in interface javax.sound.midi.MidiChannel

getProgram

public int getProgram()
Specified by:
getProgram in interface javax.sound.midi.MidiChannel

programChange

public void programChange(int arg0)
Specified by:
programChange in interface javax.sound.midi.MidiChannel

programChange

public void programChange(int arg0,
                          int arg1)
Specified by:
programChange in interface javax.sound.midi.MidiChannel

getChannelPressure

public int getChannelPressure()
Specified by:
getChannelPressure in interface javax.sound.midi.MidiChannel

setChannelPressure

public void setChannelPressure(int arg0)
Specified by:
setChannelPressure in interface javax.sound.midi.MidiChannel

getPolyPressure

public int getPolyPressure(int arg0)
Specified by:
getPolyPressure in interface javax.sound.midi.MidiChannel

setPolyPressure

public void setPolyPressure(int arg0,
                            int arg1)
Specified by:
setPolyPressure in interface javax.sound.midi.MidiChannel

getSolo

public boolean getSolo()
Specified by:
getSolo in interface javax.sound.midi.MidiChannel

getMute

public boolean getMute()
Specified by:
getMute in interface javax.sound.midi.MidiChannel

getMono

public boolean getMono()
Specified by:
getMono in interface javax.sound.midi.MidiChannel

getOmni

public boolean getOmni()
Specified by:
getOmni in interface javax.sound.midi.MidiChannel

setSolo

public void setSolo(boolean arg0)
Specified by:
setSolo in interface javax.sound.midi.MidiChannel

setMute

public void setMute(boolean arg0)
Specified by:
setMute in interface javax.sound.midi.MidiChannel

setMono

public void setMono(boolean mono)
Specified by:
setMono in interface javax.sound.midi.MidiChannel

setOmni

public void setOmni(boolean arg0)
Specified by:
setOmni in interface javax.sound.midi.MidiChannel

localControl

public boolean localControl(boolean arg0)
Specified by:
localControl in interface javax.sound.midi.MidiChannel

setPitchBend

public void setPitchBend(int bend)
Specified by:
setPitchBend in interface javax.sound.midi.MidiChannel

getPitchBend

public int getPitchBend()
Specified by:
getPitchBend in interface javax.sound.midi.MidiChannel

getBendFactor

public float getBendFactor()


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.