jass.generators
Class BandPass
java.lang.Object
jass.generators.BandPass
- All Implemented Interfaces:
- Filter
public class BandPass
- extends java.lang.Object
- implements Filter
Two Biquad bandpass Filter
- Author:
- Kees van den Doel (kvdoel@cs.ubc.ca)
Field Summary |
protected float |
bw
|
protected float |
f1
|
protected float |
f2
|
Constructor Summary |
BandPass(float srate)
|
Method Summary |
void |
filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
Proces input (may be same as output). |
static void |
main(java.lang.String[] args)
|
void |
setBW(float bw)
|
void |
setF1(float f1)
|
void |
setF2(float f2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
f1
protected float f1
f2
protected float f2
bw
protected float bw
BandPass
public BandPass(float srate)
setF1
public void setF1(float f1)
setF2
public void setF2(float f2)
setBW
public void setBW(float bw)
filter
public void filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
- Proces input (may be same as output).
- Specified by:
filter
in interface Filter
- Parameters:
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.
main
public static void main(java.lang.String[] args)