arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WindowFunction Class Referenceabstract

FFT Window Function. More...

#include <FFTWindows.h>

Inheritance diagram for WindowFunction:
Blackman BlackmanHarris BlackmanNuttall BufferedWindow FlatTop Hamming Hann Nuttall Rectange Triangle Welch

Public Member Functions

virtual void begin (int samples)
 Setup the window function providing the fft length.
 
float factor (int idx)
 
virtual const char * name ()=0
 
int samples ()
 Provides the number of samples (fft length)
 

Protected Member Functions

virtual float factor_internal (int idx)=0
 
float ratio (int idx)
 

Protected Attributes

const float fourPi = 12.56637061f
 
int i_half_samples = 0
 
int i_samples = 0
 
float samples_minus_1 = 0.0f
 
const float sixPi = 18.84955593f
 
const float twoPi = 6.28318531f
 

Detailed Description

FFT Window Function.

Author
Phil Schatzmann

Member Function Documentation

◆ begin()

virtual void begin ( int  samples)
inlinevirtual

Setup the window function providing the fft length.

Reimplemented in BufferedWindow.

◆ factor()

float factor ( int  idx)
inline

Provides the multipication factor at the indicated position. The result is symetrically mirrored around the center


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