public class FFTParameters
extends java.lang.Object
These parameters are used while performing the FFT, and can be accessed as an attribute of the result.
Modifier and Type  Field and Description 

boolean 
isNormalized
If true, all frequency bin amplitudes will be in the range from 0.00 to 1.00,
where 1.00 represents the maximum frequency amplitude amongst all amplitudes in the file

java.lang.Integer 
numPoints
Number of points in the Npoint FFT

boolean 
useDecibelScale
If true, amplitude of frequency bins will be scaled logarithmically (decibels) instead of linearly

WindowFunction 
windowFunction
Window function to be used

double 
windowOverlap
Percentage of overlap between adjacent sampled windows; must be between 0 and 1

int 
windowSize
Number of samples taken from audio waveform for use in FFT

Constructor and Description 

FFTParameters() 
Modifier and Type  Method and Description 

int 
totalWindowLength()
Get total length of window; returns windowSize by default, but will return numPoints of it is set

int 
zeroPadLength()
Get zero padding length (# of zeroes that should be appended to input signal before taking FFT)
based on numPoints and windowSize parameters

public int windowSize
If numPoints is not defined, this must be a power of 2. If numPoints is defined to be greater than window size, the signal will be padded with (numPoints  windowSize) zeroes.
public WindowFunction windowFunction
One of: rectangular, triangular, Bartlett, Hanning, Hamming, Blackman
public double windowOverlap
Large window overlap percentages can dramatically increase the size of the FFT result because more FFT frames are calculated. For example, if 75% overlap is used (windowOverlap = .75), there will be 4 times as many FFT frames computed than there would be with no overlap.
public java.lang.Integer numPoints
If not defined, will default to the window size. If defined, must be greater than window size and be a power of 2.
public boolean useDecibelScale
The decibel scale describes the amplitude of a sound relative to some reference value. In the case of digital audio, this reference value is the maximum possible amplitude value that can be represented at a given bit depth. Since each value will be compared to the maximum possible, most or all of the dB readings will be less than 0. No sound at all is typically represented by negative infinity, but QuiFFT sets a floor of 100 dB to avoid infinite values.
Therefore, if a decibel scale is used, bin amplitudes will be in the range [100.0, 0.0].
public boolean isNormalized
If useDecibelScale
is set to true, the value of isNormalized
doesn't
matter because the decibel scale is normalized by definition.
public int zeroPadLength()
public int totalWindowLength()