public class IFFT extends AbstractSignalProcessor<LinearFrequencySpectrum,AudioBuffer>
Transforms samples obtained from a given LinearFrequencySpectrum
using the inverse FFT. The result will be an AudioBuffer
, containing
the real part, the imaginary part and methods for accessing all kinds of other goodies.
Should the number of samples fed into this processor not be a power of two, the sample array will
be zero padded at the end before applying the inverse FFT.
The returned AudioBuffer
object is re-used. If you need to hold on
to it for longer than the current method call, you must either Object.clone()
it or
create a copy using a copy constructor.
FFTFactory
,
DCT
,
FFT
lastOut, signalProcessorSupport
Constructor and Description |
---|
IFFT() |
IFFT(float requiredResolutionInHz) |
IFFT(int length) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getLength()
FFT length.
|
float |
getRequiredResolutionInHz()
Desired resolution in Hz.
|
int |
hashCode() |
protected AudioBuffer |
processNext(LinearFrequencySpectrum buffer)
Processes the given input and returns some output.
|
String |
toString() |
connectTo, connectTo, connectTo, disconnectFrom, flush, getConnectedProcessors, getConnectedSource, getId, getOutput, process, read, reset, setId
public IFFT(int length)
length
- minimum size of the array to transform - shorter buffers will be zero paddedpublic IFFT(float requiredResolutionInHz)
requiredResolutionInHz
- min res in Hz (achieved through zero padding)public IFFT()
public int getLength()
public float getRequiredResolutionInHz()
protected AudioBuffer processNext(LinearFrequencySpectrum buffer) throws IOException
AbstractSignalProcessor
processNext
in class AbstractSignalProcessor<LinearFrequencySpectrum,AudioBuffer>
buffer
- input guaranteed not to be null
.IOException
- if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.