Ardour  9.0-pre0-582-g084a23a80d
GTKArdour::FFT Class Reference

#include <fft.h>

Public Types

enum  WindowingType { NONE , HANN }
 

Public Member Functions

 FFT (uint32_t)
 
 ~FFT ()
 
void reset ()
 
void analyze (ARDOUR::Sample *, WindowingType w=NONE)
 
void calculate ()
 
uint32_t bins () const
 
float power_at_bin (uint32_t i) const
 
float phase_at_bin (uint32_t i) const
 

Private Member Functions

float * get_hann_window ()
 

Private Attributes

uint32_t const _window_size
 
uint32_t const _data_size
 
uint32_t _iterations
 
float * _hann_window
 
float * _fftInput
 
float * _fftOutput
 
float * _power_at_bin
 
float * _phase_at_bin
 
fftwf_plan _plan
 

Detailed Description

Definition at line 34 of file fft.h.

Member Enumeration Documentation

◆ WindowingType

Enumerator
NONE 
HANN 

Definition at line 40 of file fft.h.

Constructor & Destructor Documentation

◆ FFT()

GTKArdour::FFT::FFT ( uint32_t  )

◆ ~FFT()

GTKArdour::FFT::~FFT ( )

Member Function Documentation

◆ analyze()

void GTKArdour::FFT::analyze ( ARDOUR::Sample ,
WindowingType  w = NONE 
)

◆ bins()

uint32_t GTKArdour::FFT::bins ( ) const
inline

Definition at line 49 of file fft.h.

◆ calculate()

void GTKArdour::FFT::calculate ( )

◆ get_hann_window()

float* GTKArdour::FFT::get_hann_window ( )
private

◆ phase_at_bin()

float GTKArdour::FFT::phase_at_bin ( uint32_t  i) const
inline

Definition at line 52 of file fft.h.

◆ power_at_bin()

float GTKArdour::FFT::power_at_bin ( uint32_t  i) const
inline

Definition at line 51 of file fft.h.

◆ reset()

void GTKArdour::FFT::reset ( )

Member Data Documentation

◆ _data_size

uint32_t const GTKArdour::FFT::_data_size
private

Definition at line 58 of file fft.h.

◆ _fftInput

float* GTKArdour::FFT::_fftInput
private

Definition at line 63 of file fft.h.

◆ _fftOutput

float* GTKArdour::FFT::_fftOutput
private

Definition at line 64 of file fft.h.

◆ _hann_window

float* GTKArdour::FFT::_hann_window
private

Definition at line 61 of file fft.h.

◆ _iterations

uint32_t GTKArdour::FFT::_iterations
private

Definition at line 59 of file fft.h.

◆ _phase_at_bin

float* GTKArdour::FFT::_phase_at_bin
private

Definition at line 67 of file fft.h.

◆ _plan

fftwf_plan GTKArdour::FFT::_plan
private

Definition at line 69 of file fft.h.

◆ _power_at_bin

float* GTKArdour::FFT::_power_at_bin
private

Definition at line 66 of file fft.h.

◆ _window_size

uint32_t const GTKArdour::FFT::_window_size
private

Definition at line 57 of file fft.h.


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