jass.generators
Class FFTFilter
java.lang.Object
jass.generators.FFTFilter
- All Implemented Interfaces:
- Filter
public class FFTFilter
- extends java.lang.Object
- implements Filter
- Author:
- Kees van den Doel (kvdoel@cs.ubc.ca)
Constructor Summary |
FFTFilter(float srate,
int bufferSize,
int bits)
|
Method Summary |
void |
filter(float[] output,
float[] input,
int nsamples,
int inputOffset)
Proces input (may be same as output). |
protected void |
init(int bits)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srate
protected float srate
bufferSize
protected int bufferSize
xr
protected float[] xr
xi
protected float[] xi
fft
protected FFTFloat fft
FFTFilter
public FFTFilter(float srate,
int bufferSize,
int bits)
init
protected void init(int bits)
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. Must be 0 for this filter
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception