jass.generators
Class FFTFilter

java.lang.Object
  extended by 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)

Field Summary
protected  int bufferSize
           
protected  FFTFloat fft
           
protected  float srate
           
protected  float[] xi
           
protected  float[] xr
           
 
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
 

Field Detail

srate

protected float srate

bufferSize

protected int bufferSize

xr

protected float[] xr

xi

protected float[] xi

fft

protected FFTFloat fft
Constructor Detail

FFTFilter

public FFTFilter(float srate,
                 int bufferSize,
                 int bits)
Method Detail

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