APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.media.sound

public final Class SoftChorus

extends Object
implements SoftAudioProcessor
Class Inheritance
All Implemented Interfaces
com.sun.media.sound.SoftAudioProcessor
Imports
java.util.Arrays

A chorus effect made using LFO and variable delay. One for each channel (left,right), with different starting phase for stereo effect.
Author
Karl Helgason

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private float
private boolean
private double
private float
private double
private float
private double
private float
private double
private float
private SoftAudioBuffer
private SoftAudioBuffer
private boolean
private SoftAudioBuffer
private float
private SoftAudioBuffer
pack-priv double
private SoftChorus.LFODelay
private SoftChorus.LFODelay

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
init(float samplerate, float controlrate)

Implements com.sun.media.sound.SoftAudioProcessor.init.

public void
public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlrateback to summary
private float controlrate
dirtyback to summary
private boolean dirty
dirty_vdelay1L_depthback to summary
private double dirty_vdelay1L_depth
dirty_vdelay1L_feedbackback to summary
private float dirty_vdelay1L_feedback
dirty_vdelay1L_rateback to summary
private double dirty_vdelay1L_rate
dirty_vdelay1L_reverbsendgainback to summary
private float dirty_vdelay1L_reverbsendgain
dirty_vdelay1R_depthback to summary
private double dirty_vdelay1R_depth
dirty_vdelay1R_feedbackback to summary
private float dirty_vdelay1R_feedback
dirty_vdelay1R_rateback to summary
private double dirty_vdelay1R_rate
dirty_vdelay1R_reverbsendgainback to summary
private float dirty_vdelay1R_reverbsendgain
inputAback to summary
private SoftAudioBuffer inputA
leftback to summary
private SoftAudioBuffer left
mixback to summary
private boolean mix
reverbback to summary
private SoftAudioBuffer reverb
rgainback to summary
private float rgain
silentcounterback to summary
pack-priv double silentcounter
vdelay1Lback to summary
private SoftChorus.LFODelay vdelay1L
vdelay1Rback to summary
private SoftChorus.LFODelay vdelay1R

Constructor Detail

SoftChorusback to summary
public SoftChorus()

Method Detail

globalParameterControlChangeback to summary
public void globalParameterControlChange(int[] slothpath, long param, long value)

Implements com.sun.media.sound.SoftAudioProcessor.globalParameterControlChange.

Annotations
@Override
initback to summary
public void init(float samplerate, float controlrate)

Implements com.sun.media.sound.SoftAudioProcessor.init.

Annotations
@Override
processAudioback to summary
public void processAudio()

Implements com.sun.media.sound.SoftAudioProcessor.processAudio.

Annotations
@Override
processControlLogicback to summary
public void processControlLogic()

Implements com.sun.media.sound.SoftAudioProcessor.processControlLogic.

Annotations
@Override
setInputback to summary
public void setInput(int pin, SoftAudioBuffer input)

Implements com.sun.media.sound.SoftAudioProcessor.setInput.

Annotations
@Override
setMixModeback to summary
public void setMixMode(boolean mix)

Implements com.sun.media.sound.SoftAudioProcessor.setMixMode.

Annotations
@Override
setOutputback to summary
public void setOutput(int pin, SoftAudioBuffer output)

Implements com.sun.media.sound.SoftAudioProcessor.setOutput.

Annotations
@Override
com.sun.media.sound back to summary

private Class SoftChorus.LFODelay

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final double
private double
private double
private double
private final double
private SoftChorus.VariableDelay

Constructor Summary

AccessConstructor and Description
pack-priv
LFODelay(double samplerate, double controlrate)

Method Summary

Modifier and TypeMethod and Description
public void
processMix(float[] in, float[] out, float[] rout)

public void
processReplace(float[] in, float[] out, float[] rout)

public void
setDepth(double depth)

public void
setFeedBack(float feedback)

public void
setGain(float gain)

public void
setPhase(double phase)

public void
setRate(double rate)

public void
setReverbSendGain(float rgain)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlrateback to summary
private final double controlrate
depthback to summary
private double depth
phaseback to summary
private double phase
phase_stepback to summary
private double phase_step
samplerateback to summary
private final double samplerate
vdelayback to summary
private SoftChorus.VariableDelay vdelay

Constructor Detail

LFODelayback to summary
pack-priv LFODelay(double samplerate, double controlrate)

Method Detail

processMixback to summary
public void processMix(float[] in, float[] out, float[] rout)
processReplaceback to summary
public void processReplace(float[] in, float[] out, float[] rout)
setDepthback to summary
public void setDepth(double depth)
setFeedBackback to summary
public void setFeedBack(float feedback)
setGainback to summary
public void setGain(float gain)
setPhaseback to summary
public void setPhase(double phase)
setRateback to summary
public void setRate(double rate)
setReverbSendGainback to summary
public void setReverbSendGain(float rgain)
com.sun.media.sound back to summary

private Class SoftChorus.VariableDelay

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private float
private final float[]
private float
private float
private float
private float
private int

Constructor Summary

AccessConstructor and Description
pack-priv
VariableDelay(int maxbuffersize)

Method Summary

Modifier and TypeMethod and Description
public void
processMix(float[] in, float[] out, float[] rout)

public void
processReplace(float[] in, float[] out, float[] rout)

public void
setDelay(float delay)

public void
setFeedBack(float feedback)

public void
setGain(float gain)

public void
setReverbSendGain(float rgain)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delayback to summary
private float delay
delaybufferback to summary
private final float[] delaybuffer
feedbackback to summary
private float feedback
gainback to summary
private float gain
lastdelayback to summary
private float lastdelay
rgainback to summary
private float rgain
roveposback to summary
private int rovepos

Constructor Detail

VariableDelayback to summary
pack-priv VariableDelay(int maxbuffersize)

Method Detail

processMixback to summary
public void processMix(float[] in, float[] out, float[] rout)
processReplaceback to summary
public void processReplace(float[] in, float[] out, float[] rout)
setDelayback to summary
public void setDelay(float delay)
setFeedBackback to summary
public void setFeedBack(float feedback)
setGainback to summary
public void setGain(float gain)
setReverbSendGainback to summary
public void setReverbSendGain(float rgain)