public class LowPassFilter extends AbstractFilter
sampleSize, source
Constructor and Description |
---|
LowPassFilter(SampleProvider source,
float timeConstant)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
fetchSample(float[] dst,
int off)
Fetches a sample from the source and low-passes it
See http://en.wikipedia.org/wiki/Low-pass_filter
|
void |
setTimeConstant(float timeConstant) |
sampleSize
public LowPassFilter(SampleProvider source, float timeConstant)
source
- The source for getting samplestimeConstant
- The cut-off frequency for the filterpublic void fetchSample(float[] dst, int off)
fetchSample
in interface SampleProvider
fetchSample
in class AbstractFilter
dst
- The array to store the sample in.off
- The elements of the sample are stored in the array starting at the offset position.public void setTimeConstant(float timeConstant)