public class SoftChannel extends java.lang.Object implements javax.sound.midi.MidiChannel, ModelDirectedPlayer
| Modifier and Type | Field and Description |
|---|---|
protected ModelConnectionBlock[] |
cds_channelpressure_connections |
protected ModelConnectionBlock[] |
cds_control_connections |
protected int |
cds_control_number |
protected ModelConnectionBlock[] |
cds_polypressure_connections |
protected SoftInstrument |
current_instrument |
protected ModelChannelMixer |
current_mixer |
protected boolean[][] |
keybasedcontroller_active |
protected double[][] |
keybasedcontroller_value |
protected int[] |
portamento_lastnote |
protected int |
portamento_lastnote_ix |
protected double |
portamento_time |
protected boolean |
sustain |
protected SoftTuning |
tuning |
protected int |
tuning_bank |
protected int |
tuning_program |
| Constructor and Description |
|---|
SoftChannel(SoftSynthesizer synth,
int channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
allNotesOff() |
void |
allSoundOff() |
protected void |
applyInstrumentCustomization() |
void |
controlChange(int controller,
int value) |
void |
controlChangePerNote(int noteNumber,
int controller,
int value) |
int |
getChannelPressure() |
int |
getController(int controller) |
int |
getControlPerNote(int noteNumber,
int controller) |
boolean |
getMono() |
boolean |
getMute() |
boolean |
getOmni() |
int |
getPitchBend() |
int |
getPolyPressure(int noteNumber) |
int |
getProgram() |
boolean |
getSolo() |
protected void |
initVoice(SoftVoice voice,
SoftPerformer p,
int voiceID,
int noteNumber,
int velocity,
int delay,
ModelConnectionBlock[] connectionBlocks,
ModelChannelMixer channelmixer,
boolean releaseTriggered) |
boolean |
localControl(boolean on) |
void |
mapChannelPressureToDestination(int[] destination,
int[] range) |
void |
mapControlToDestination(int control,
int[] destination,
int[] range) |
void |
mapPolyPressureToDestination(int[] destination,
int[] range) |
void |
noteOff(int noteNumber) |
void |
noteOff(int noteNumber,
int velocity) |
void |
noteOn(int noteNumber,
int velocity) |
protected void |
noteOn(int noteNumber,
int velocity,
int delay) |
void |
nrpnChange(int controller,
int value) |
void |
play(int performerIndex,
ModelConnectionBlock[] connectionBlocks) |
void |
programChange(int program) |
void |
programChange(int bank,
int program) |
void |
resetAllControllers() |
void |
resetAllControllers(boolean allControls) |
void |
rpnChange(int controller,
int value) |
void |
setChannelPressure(int pressure) |
void |
setMono(boolean on) |
void |
setMute(boolean mute) |
void |
setOmni(boolean on) |
void |
setPitchBend(int bend) |
void |
setPolyPressure(int noteNumber,
int pressure) |
void |
setSolo(boolean soloState) |
void |
tuningChange(int program) |
void |
tuningChange(int bank,
int program) |
protected double portamento_time
protected int[] portamento_lastnote
protected int portamento_lastnote_ix
protected SoftTuning tuning
protected int tuning_bank
protected int tuning_program
protected SoftInstrument current_instrument
protected ModelChannelMixer current_mixer
protected int cds_control_number
protected ModelConnectionBlock[] cds_control_connections
protected ModelConnectionBlock[] cds_channelpressure_connections
protected ModelConnectionBlock[] cds_polypressure_connections
protected boolean sustain
protected boolean[][] keybasedcontroller_active
protected double[][] keybasedcontroller_value
public SoftChannel(SoftSynthesizer synth, int channel)
protected void initVoice(SoftVoice voice, SoftPerformer p, int voiceID, int noteNumber, int velocity, int delay, ModelConnectionBlock[] connectionBlocks, ModelChannelMixer channelmixer, boolean releaseTriggered)
public void noteOn(int noteNumber,
int velocity)
noteOn in interface javax.sound.midi.MidiChannelprotected void noteOn(int noteNumber,
int velocity,
int delay)
public void noteOff(int noteNumber,
int velocity)
noteOff in interface javax.sound.midi.MidiChannelpublic void play(int performerIndex,
ModelConnectionBlock[] connectionBlocks)
play in interface ModelDirectedPlayerpublic void noteOff(int noteNumber)
noteOff in interface javax.sound.midi.MidiChannelpublic void setPolyPressure(int noteNumber,
int pressure)
setPolyPressure in interface javax.sound.midi.MidiChannelpublic int getPolyPressure(int noteNumber)
getPolyPressure in interface javax.sound.midi.MidiChannelpublic void setChannelPressure(int pressure)
setChannelPressure in interface javax.sound.midi.MidiChannelpublic int getChannelPressure()
getChannelPressure in interface javax.sound.midi.MidiChannelprotected void applyInstrumentCustomization()
public void mapPolyPressureToDestination(int[] destination,
int[] range)
public void mapChannelPressureToDestination(int[] destination,
int[] range)
public void mapControlToDestination(int control,
int[] destination,
int[] range)
public void controlChangePerNote(int noteNumber,
int controller,
int value)
public int getControlPerNote(int noteNumber,
int controller)
public void controlChange(int controller,
int value)
controlChange in interface javax.sound.midi.MidiChannelpublic int getController(int controller)
getController in interface javax.sound.midi.MidiChannelpublic void tuningChange(int program)
public void tuningChange(int bank,
int program)
public void programChange(int program)
programChange in interface javax.sound.midi.MidiChannelpublic void programChange(int bank,
int program)
programChange in interface javax.sound.midi.MidiChannelpublic int getProgram()
getProgram in interface javax.sound.midi.MidiChannelpublic void setPitchBend(int bend)
setPitchBend in interface javax.sound.midi.MidiChannelpublic int getPitchBend()
getPitchBend in interface javax.sound.midi.MidiChannelpublic void nrpnChange(int controller,
int value)
public void rpnChange(int controller,
int value)
public void resetAllControllers()
resetAllControllers in interface javax.sound.midi.MidiChannelpublic void resetAllControllers(boolean allControls)
public void allNotesOff()
allNotesOff in interface javax.sound.midi.MidiChannelpublic void allSoundOff()
allSoundOff in interface javax.sound.midi.MidiChannelpublic boolean localControl(boolean on)
localControl in interface javax.sound.midi.MidiChannelpublic void setMono(boolean on)
setMono in interface javax.sound.midi.MidiChannelpublic boolean getMono()
getMono in interface javax.sound.midi.MidiChannelpublic void setOmni(boolean on)
setOmni in interface javax.sound.midi.MidiChannelpublic boolean getOmni()
getOmni in interface javax.sound.midi.MidiChannelpublic void setMute(boolean mute)
setMute in interface javax.sound.midi.MidiChannelpublic boolean getMute()
getMute in interface javax.sound.midi.MidiChannelpublic void setSolo(boolean soloState)
setSolo in interface javax.sound.midi.MidiChannelpublic boolean getSolo()
getSolo in interface javax.sound.midi.MidiChannel