|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jass.generators.KellyLochbaumFilterOld
public class KellyLochbaumFilterOld
Kelly-Lochbaum filter. Follow notation of MATLAB sample code from www.cs.tut.fi/sgn/arg/8003051 and associated writeup therein
Field Summary | |
---|---|
protected double[] |
B0
State of filter. |
protected double[] |
B0old
Scratch variables |
protected double[] |
B1
State of filter. |
protected double[] |
B1old
Scratch variables |
protected double[] |
cylRadius
Radii of the segments |
protected double |
dampingCoeff
How much damping in system (1 == no damping) |
protected double[] |
F0
State of filter. |
protected double[] |
F0old
Scratch variables |
protected double[] |
F1
State of filter. |
protected double[] |
F1old
Scratch variables |
protected double |
glottalReflectionCoeff
How much is reflected back at glottis |
protected double[] |
kCoeff
Filter coefficients derived form cylinder radii |
protected int |
nJunctions
This many junctions (above -1) |
protected int |
nTubeSections
This many cylinder segments |
protected float |
srate
Sampling rate in Hertz. |
Constructor Summary | |
---|---|
KellyLochbaumFilterOld()
|
|
KellyLochbaumFilterOld(float srate,
int nTubeSections)
Create and initialize. |
Method Summary | |
---|---|
protected void |
computeKCoeff()
Compute low level filter values from geometry |
void |
filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
Proces input (may be same as output). |
void |
resetFilter()
Clear filter of past history |
void |
setAllCylinderRadii(double[] r)
Set all radii |
void |
setCylinderRadius(int k,
double r)
Set an individual segment radius |
void |
setDampingCoeff(double val)
Set damping coeff. |
void |
setGlottalReflectionCoeff(double val)
Set the glottal reflection coeff. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float srate
protected double[] F0
protected double[] F1
protected double[] B0
protected double[] B1
protected double glottalReflectionCoeff
protected double dampingCoeff
protected double[] F0old
protected double[] F1old
protected double[] B0old
protected double[] B1old
protected int nTubeSections
protected int nJunctions
protected double[] cylRadius
protected double[] kCoeff
Constructor Detail |
---|
public KellyLochbaumFilterOld(float srate, int nTubeSections)
srate
- sampling rate in Hertz.nTubeSection
- number of sectionspublic KellyLochbaumFilterOld()
Method Detail |
---|
protected void computeKCoeff()
public void setCylinderRadius(int k, double r)
k
- index of segment (0,...)r
- radius to setpublic void setAllCylinderRadii(double[] r)
array
- of r radiipublic void resetFilter()
public void setGlottalReflectionCoeff(double val)
val
- glottal reflection coefficientpublic void setDampingCoeff(double val)
val
- damping coefficientpublic void filter(float[] output, float[] input, int nsamples, int inputOffset)
filter
in interface Filter
output
- user provided buffer for returned result.input
- user provided input buffer.nsamples
- number of samples written to output buffer.inputOffset
- where to start in circular buffer input.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |