jass.utils
Class FormantsPlotter

java.lang.Object
  extended by jass.utils.FormantsPlotter

public class FormantsPlotter
extends java.lang.Object

Plot spectral response of a jass.generators.Filter and display. Also compute resonance frequencies ("formants").


Field Summary
protected  int bits
           
protected  int[] formantIndex
           
protected  IRPFilter irpFilter
           
protected  int MAX_FORMANTS
           
protected  int n
           
protected  int nFormants
           
protected  double[][] plotData
           
protected  PlotGraph plotGraph
           
protected  float srate
           
protected  int topleft_x
           
protected  int topleft_y
           
 
Constructor Summary
FormantsPlotter()
           
 
Method Summary
 void close()
           
 void dumpData(Filter filter, float srate)
           
 void plotFormants(Filter filter, float srate)
           
 void setLocation(int topleft_x, int topleft_y)
           
 void setNumFormants(int num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

irpFilter

protected IRPFilter irpFilter

plotData

protected double[][] plotData

plotGraph

protected PlotGraph plotGraph

srate

protected float srate

formantIndex

protected int[] formantIndex

MAX_FORMANTS

protected int MAX_FORMANTS

nFormants

protected int nFormants

bits

protected int bits

n

protected int n

topleft_x

protected int topleft_x

topleft_y

protected int topleft_y
Constructor Detail

FormantsPlotter

public FormantsPlotter()
Method Detail

setLocation

public void setLocation(int topleft_x,
                        int topleft_y)

close

public void close()

setNumFormants

public void setNumFormants(int num)

dumpData

public void dumpData(Filter filter,
                     float srate)

plotFormants

public void plotFormants(Filter filter,
                         float srate)