public class DCT extends AbstractSignalProcessor<AudioBuffer,LinearFrequencySpectrum>
AudioBuffer.getData()
using the DCT. The result will be a LinearFrequencySpectrum
, containing
the real part and methods for accessing all kinds of other goodies.AudioSpectrum
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 like LinearFrequencySpectrum.LinearFrequencySpectrum(LinearFrequencySpectrum)
.DCTFactory
,
FFT
lastOut, signalProcessorSupport
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
protected LinearFrequencySpectrum |
processNext(AudioBuffer 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 DCT(int length)
length
- minimum size of the array to transform - shorter buffers will be zero paddedpublic DCT()
protected LinearFrequencySpectrum processNext(AudioBuffer buffer) throws IOException
AbstractSignalProcessor
processNext
in class AbstractSignalProcessor<AudioBuffer,LinearFrequencySpectrum>
buffer
- input guaranteed not to be null
.IOException
- if an IO error occursCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.