com.sun.media.sound
Class SoftVoice

java.lang.Object
  extended by javax.sound.midi.VoiceStatus
      extended by com.sun.media.sound.SoftVoice

public class SoftVoice
extends javax.sound.midi.VoiceStatus

Software synthesizer voice class.

Author:
Karl Helgason

Field Summary
protected  ModelChannelMixer channelmixer
           
protected  double[] co_noteon_keynumber
           
protected  double[] co_noteon_on
           
protected  double[] co_noteon_velocity
           
 int exclusiveClass
           
protected  ModelConnectionBlock[] extendedConnectionBlocks
           
protected  SoftInstrument instrument
           
protected  java.util.Map<java.lang.String,SoftControl> objects
           
protected  boolean on
           
protected  SoftPerformer performer
           
protected  boolean portamento
           
 boolean releaseTriggered
           
protected  SoftResamplerStreamer resampler
           
protected  SoftChannel softchannel
           
protected  boolean sostenuto
           
protected  SoftChannel stealer_channel
           
protected  ModelChannelMixer stealer_channelmixer
           
protected  ModelConnectionBlock[] stealer_extendedConnectionBlocks
           
protected  int stealer_noteNumber
           
protected  SoftPerformer stealer_performer
           
protected  boolean stealer_releaseTriggered
           
protected  int stealer_velocity
           
protected  int stealer_voiceID
           
protected  boolean sustain
           
protected  SoftSynthesizer synthesizer
           
protected  double tunedKey
           
protected  SoftTuning tuning
           
protected  int voiceID
           
 
Fields inherited from class javax.sound.midi.VoiceStatus
active, bank, channel, note, program, volume
 
Constructor Summary
SoftVoice(SoftSynthesizer synth)
           
 
Method Summary
protected  void controlChange(int controller, int value)
           
protected  void mixAudioStream(SoftAudioBuffer in, SoftAudioBuffer out, float amp_from, float amp_to)
           
protected  void noteOff(int velocity)
           
protected  void noteOn(int noteNumber, int velocity)
           
protected  void nrpnChange(int controller, int value)
           
protected  void processAudioLogic(SoftAudioBuffer[] buffer)
           
protected  void processControlLogic()
           
protected  void redamp()
           
protected  void rpnChange(int controller, int value)
           
protected  void setChannelPressure(int pressure)
           
protected  void setMute(boolean mute)
           
protected  void setNote(int noteNumber)
           
protected  void setPitchBend(int bend)
           
protected  void setPolyPressure(int pressure)
           
protected  void setSoloMute(boolean mute)
           
protected  void shutdown()
           
protected  void soundOff()
           
protected  void updateTuning(SoftTuning newtuning)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exclusiveClass

public int exclusiveClass

releaseTriggered

public boolean releaseTriggered

channelmixer

protected ModelChannelMixer channelmixer

tunedKey

protected double tunedKey

tuning

protected SoftTuning tuning

stealer_channel

protected SoftChannel stealer_channel

stealer_extendedConnectionBlocks

protected ModelConnectionBlock[] stealer_extendedConnectionBlocks

stealer_performer

protected SoftPerformer stealer_performer

stealer_channelmixer

protected ModelChannelMixer stealer_channelmixer

stealer_voiceID

protected int stealer_voiceID

stealer_noteNumber

protected int stealer_noteNumber

stealer_velocity

protected int stealer_velocity

stealer_releaseTriggered

protected boolean stealer_releaseTriggered

voiceID

protected int voiceID

sustain

protected boolean sustain

sostenuto

protected boolean sostenuto

portamento

protected boolean portamento

objects

protected java.util.Map<java.lang.String,SoftControl> objects

synthesizer

protected SoftSynthesizer synthesizer

instrument

protected SoftInstrument instrument

performer

protected SoftPerformer performer

softchannel

protected SoftChannel softchannel

on

protected boolean on

extendedConnectionBlocks

protected ModelConnectionBlock[] extendedConnectionBlocks

co_noteon_keynumber

protected double[] co_noteon_keynumber

co_noteon_velocity

protected double[] co_noteon_velocity

co_noteon_on

protected double[] co_noteon_on

resampler

protected SoftResamplerStreamer resampler
Constructor Detail

SoftVoice

public SoftVoice(SoftSynthesizer synth)
Method Detail

updateTuning

protected void updateTuning(SoftTuning newtuning)

setNote

protected void setNote(int noteNumber)

noteOn

protected void noteOn(int noteNumber,
                      int velocity)

setPolyPressure

protected void setPolyPressure(int pressure)

setChannelPressure

protected void setChannelPressure(int pressure)

controlChange

protected void controlChange(int controller,
                             int value)

nrpnChange

protected void nrpnChange(int controller,
                          int value)

rpnChange

protected void rpnChange(int controller,
                         int value)

setPitchBend

protected void setPitchBend(int bend)

setMute

protected void setMute(boolean mute)

setSoloMute

protected void setSoloMute(boolean mute)

shutdown

protected void shutdown()

soundOff

protected void soundOff()

noteOff

protected void noteOff(int velocity)

redamp

protected void redamp()

processControlLogic

protected void processControlLogic()

mixAudioStream

protected void mixAudioStream(SoftAudioBuffer in,
                              SoftAudioBuffer out,
                              float amp_from,
                              float amp_to)

processAudioLogic

protected void processAudioLogic(SoftAudioBuffer[] buffer)