33 #ifndef _NSOUND_FFT_CHUNK_H_
34 #define _NSOUND_FFT_CHUNK_H_
85 const std::string & title =
"",
87 boolean show_phase =
false)
const;
Buffer getFrequencyAxis() const
Buffer getImaginary() const
FFTChunk & operator=(const FFTChunk &rhs)
Results of performing an FFT are stored in this class.
void toCartesian()
convertes the magnitude & phase to cartesian form: real & imaginary
void plot(const std::string &title="", boolean dB=true, boolean show_phase=false) const
void setPolar(const Buffer &magnitude, const Buffer &phase)
Sets up an FFTChunk to use the provided magnitude & phase.
void toPolar()
convertes the real & imaginary unit to plor form: magnitude & phase
Buffer getMagnitude() const
uint32 getSampleRate() const
FFTChunk(uint32 size=32, uint32 sample_rate=44100, uint32 original_size=0)
A Buffer for storing audio samples.
void setCartesian(const Buffer &real, const Buffer &imaginary)
Sets up an FFTChunk to use the provided real & imaginary.
std::vector< FFTChunk > FFTChunkVector
uint32 getOriginalSize() const