openshot-audio
0.1.5
|
#include <juce_audio_basics.h>
Classes | |
struct | Complex |
struct | FFTConfig |
Public Member Functions | |
FFT (int order, bool isInverse) | |
~FFT () | |
void | perform (const Complex *input, Complex *output) const noexcept |
void | performRealOnlyForwardTransform (float *inputOutputData) const noexcept |
void | performRealOnlyInverseTransform (float *inputOutputData) const noexcept |
void | performFrequencyOnlyForwardTransform (float *inputOutputData) const noexcept |
int | getSize () const noexcept |
A very minimal FFT class.
This is only a simple low-footprint implementation and isn't tuned for speed - it may be useful for simple applications where one of the more complex FFT libraries would be overkill. (But in the future it may end up becoming optimised of course...)
The FFT class itself contains lookup tables, so there's some overhead in creating one, you should create and cache an FFT object for each size/direction of transform that you need, and re-use them to perform the actual operation.
FFT::FFT | ( | int | order, |
bool | isInverse | ||
) |
FFT::~FFT | ( | ) |
Destructor.
|
inlinenoexcept |
Returns the number of data points that this FFT was created to work with.
|
noexcept |
Takes an array and simply transforms it to the frequency spectrum. This may be handy for things like frequency displays or analysis.
|
noexcept |
Performs an in-place forward transform on a block of real data.
The size of the array passed in must be 2 * getSize(), and the first half should contain your raw input sample data. On return, the array will contain complex frequency + phase data, and can be passed to performRealOnlyInverseTransform() in order to convert it back to reals.
|
noexcept |
Performs a reverse operation to data created in performRealOnlyForwardTransform().
The size of the array passed in must be 2 * getSize(), containing complex frequency and phase data. On return, the first half of the array will contain the reconstituted samples.