|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjass.generators.ResonFilter
public class ResonFilter
Reson filter.
| Field Summary | |
|---|---|
protected float |
srate
Sampling rate in Hertz. |
| Constructor Summary | |
|---|---|
ResonFilter(float srate)
Create and initialize. |
|
| Method Summary | |
|---|---|
void |
filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
Proces input (may be same as output). |
float |
filter1Sample(float input)
Proces a single sample. |
void |
reset()
Reset state. |
void |
setGain(float a)
Set gain. |
void |
setResonCoeff(float f,
float d,
float a)
Set the reson coefficients and gain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float srate
| Constructor Detail |
|---|
public ResonFilter(float srate)
srate - sampling rate in Hertz.| Method Detail |
|---|
public void setResonCoeff(float f,
float d,
float a)
f - resonance frequency in Hertz.d - damping in radians/s.a - gain.public void setGain(float a)
a - gain.public void reset()
public void filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
filter in interface Filteroutput - 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.public float filter1Sample(float input)
input - user provided input sample
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||