arduino-audio-tools
Public Member Functions | List of all members
FFTDriver Class Referenceabstract

Abstract Class which defines the basic FFT functionality. More...

#include <AudioFFT.h>

Inheritance diagram for FFTDriver:
FFTDriverCmsisFFT FFTDriverESP32FFT FFTDriverEspressifFFT FFTDriverKissFFT FFTDriverRealFFT

Public Member Functions

virtual bool begin (int len)=0
 
virtual void end ()=0
 
virtual void fft ()=0
 Perform FFT.
 
virtual bool getBin (int pos, FFTBin &bin)
 gets the value of a bin
 
virtual float getValue (int pos)=0
 Get result value from Reverse FFT.
 
virtual bool isReverseFFT ()
 Returns true if reverse FFT is supported.
 
virtual bool isValid ()=0
 
virtual float magnitude (int idx)=0
 Calculate the magnitude (fft result) at index (sqr(i² + r²))
 
virtual float magnitudeFast (int idx)=0
 Calculate the magnitude w/o sqare root.
 
virtual void rfft ()
 Calculate reverse FFT.
 
virtual bool setBin (int idx, float real, float img)
 sets the value of a bin
 
bool setBin (int pos, FFTBin &bin)
 sets the value of a bin
 
virtual void setValue (int pos, float value)=0
 Sets the real value.
 

Detailed Description

Abstract Class which defines the basic FFT functionality.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: