Ardour  9.0-pre0-582-g084a23a80d
FFTResult Class Reference

#include <fft_result.h>

Public Member Functions

 ~FFTResult ()=default
 
void analyzeWindow (float *window)
 
void finalize ()
 
unsigned int length () const
 
float avgAt (unsigned int x, bool p) const
 
float maxAt (unsigned int x, bool p) const
 
float minAt (unsigned int x, bool p) const
 
float minimum (bool p) const
 
float maximum (bool p) const
 
const Gdk::Colorget_color () const
 

Private Member Functions

 FFTResult (FFTGraph *graph, Gdk::Color color, std::string trackname)
 

Static Private Member Functions

static float power_to_db (float v)
 

Private Attributes

FFTGraph_graph
 
unsigned int _windowSize
 
unsigned int _dataSize
 
int _averages
 
float _min_flat
 
float _max_flat
 
float _min_prop
 
float _max_prop
 
std::vector< float > _data_flat_avg
 
std::vector< float > _data_flat_max
 
std::vector< float > _data_flat_min
 
std::vector< float > _data_prop_avg
 
std::vector< float > _data_prop_max
 
std::vector< float > _data_prop_min
 
Gdk::Color _color
 
std::string _trackname
 

Friends

class FFTGraph
 

Detailed Description

Definition at line 33 of file fft_result.h.

Constructor & Destructor Documentation

◆ ~FFTResult()

FFTResult::~FFTResult ( )
default

◆ FFTResult()

FFTResult::FFTResult ( FFTGraph graph,
Gdk::Color  color,
std::string  trackname 
)
private

Member Function Documentation

◆ analyzeWindow()

void FFTResult::analyzeWindow ( float *  window)

◆ avgAt()

float FFTResult::avgAt ( unsigned int  x,
bool  p 
) const
inline

Definition at line 44 of file fft_result.h.

◆ finalize()

void FFTResult::finalize ( )

◆ get_color()

const Gdk::Color& FFTResult::get_color ( ) const
inline

Definition at line 56 of file fft_result.h.

◆ length()

unsigned int FFTResult::length ( ) const
inline

Definition at line 42 of file fft_result.h.

◆ maxAt()

float FFTResult::maxAt ( unsigned int  x,
bool  p 
) const
inline

Definition at line 46 of file fft_result.h.

◆ maximum()

float FFTResult::maximum ( bool  p) const
inline

Definition at line 53 of file fft_result.h.

◆ minAt()

float FFTResult::minAt ( unsigned int  x,
bool  p 
) const
inline

Definition at line 48 of file fft_result.h.

◆ minimum()

float FFTResult::minimum ( bool  p) const
inline

Definition at line 51 of file fft_result.h.

◆ power_to_db()

static float FFTResult::power_to_db ( float  v)
inlinestaticprivate

Definition at line 84 of file fft_result.h.

Friends And Related Function Documentation

◆ FFTGraph

friend class FFTGraph
friend

Definition at line 60 of file fft_result.h.

Member Data Documentation

◆ _averages

int FFTResult::_averages
private

Definition at line 67 of file fft_result.h.

◆ _color

Gdk::Color FFTResult::_color
private

Definition at line 81 of file fft_result.h.

◆ _data_flat_avg

std::vector<float> FFTResult::_data_flat_avg
private

Definition at line 74 of file fft_result.h.

◆ _data_flat_max

std::vector<float> FFTResult::_data_flat_max
private

Definition at line 75 of file fft_result.h.

◆ _data_flat_min

std::vector<float> FFTResult::_data_flat_min
private

Definition at line 76 of file fft_result.h.

◆ _data_prop_avg

std::vector<float> FFTResult::_data_prop_avg
private

Definition at line 77 of file fft_result.h.

◆ _data_prop_max

std::vector<float> FFTResult::_data_prop_max
private

Definition at line 78 of file fft_result.h.

◆ _data_prop_min

std::vector<float> FFTResult::_data_prop_min
private

Definition at line 79 of file fft_result.h.

◆ _dataSize

unsigned int FFTResult::_dataSize
private

Definition at line 65 of file fft_result.h.

◆ _graph

FFTGraph* FFTResult::_graph
private

Definition at line 62 of file fft_result.h.

◆ _max_flat

float FFTResult::_max_flat
private

Definition at line 70 of file fft_result.h.

◆ _max_prop

float FFTResult::_max_prop
private

Definition at line 72 of file fft_result.h.

◆ _min_flat

float FFTResult::_min_flat
private

Definition at line 69 of file fft_result.h.

◆ _min_prop

float FFTResult::_min_prop
private

Definition at line 71 of file fft_result.h.

◆ _trackname

std::string FFTResult::_trackname
private

Definition at line 82 of file fft_result.h.

◆ _windowSize

unsigned int FFTResult::_windowSize
private

Definition at line 64 of file fft_result.h.


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