Ardour  9.0-pre0-582-g084a23a80d
KaiserWindow Class Reference

#include <KaiserWindow.h>

Classes

struct  Parameters
 

Public Member Functions

 KaiserWindow (Parameters p)
 
int getLength () const
 
const double * getWindow () const
 
void cut (double *src) const
 
void cut (const double *src, double *dst) const
 

Static Public Member Functions

static KaiserWindow byTransitionWidth (double attenuation, double transition)
 
static KaiserWindow byBandwidth (double attenuation, double bandwidth, double samplerate)
 
static Parameters parametersForTransitionWidth (double attenuation, double transition)
 
static Parameters parametersForBandwidth (double attenuation, double bandwidth, double samplerate)
 

Private Member Functions

void init ()
 

Private Attributes

int m_length
 
double m_beta
 
std::vector< double > m_window
 

Detailed Description

Kaiser window: A windower whose bandwidth and sidelobe height (signal-noise ratio) can be specified. These parameters are traded off against the window length.

Definition at line 25 of file KaiserWindow.h.

Constructor & Destructor Documentation

◆ KaiserWindow()

KaiserWindow::KaiserWindow ( Parameters  p)
inline

Construct a Kaiser windower with the given length and beta parameter.

Definition at line 37 of file KaiserWindow.h.

Member Function Documentation

◆ byBandwidth()

static KaiserWindow KaiserWindow::byBandwidth ( double  attenuation,
double  bandwidth,
double  samplerate 
)
inlinestatic

Construct a Kaiser windower with the given attenuation in dB and transition bandwidth in Hz for the given samplerate.

Definition at line 53 of file KaiserWindow.h.

◆ byTransitionWidth()

static KaiserWindow KaiserWindow::byTransitionWidth ( double  attenuation,
double  transition 
)
inlinestatic

Construct a Kaiser windower with the given attenuation in dB and transition width in samples.

Definition at line 43 of file KaiserWindow.h.

◆ cut() [1/2]

void KaiserWindow::cut ( const double *  src,
double *  dst 
) const
inline

Definition at line 91 of file KaiserWindow.h.

◆ cut() [2/2]

void KaiserWindow::cut ( double *  src) const
inline

Definition at line 87 of file KaiserWindow.h.

◆ getLength()

int KaiserWindow::getLength ( ) const
inline

Definition at line 79 of file KaiserWindow.h.

◆ getWindow()

const double* KaiserWindow::getWindow ( ) const
inline

Definition at line 83 of file KaiserWindow.h.

◆ init()

void KaiserWindow::init ( )
private

◆ parametersForBandwidth()

static Parameters KaiserWindow::parametersForBandwidth ( double  attenuation,
double  bandwidth,
double  samplerate 
)
inlinestatic

Obtain the parameters necessary for a Kaiser window of the given attenuation in dB and transition bandwidth in Hz for the given samplerate.

Definition at line 72 of file KaiserWindow.h.

◆ parametersForTransitionWidth()

static Parameters KaiserWindow::parametersForTransitionWidth ( double  attenuation,
double  transition 
)
static

Obtain the parameters necessary for a Kaiser window of the given attenuation in dB and transition width in samples.

Member Data Documentation

◆ m_beta

double KaiserWindow::m_beta
private

Definition at line 99 of file KaiserWindow.h.

◆ m_length

int KaiserWindow::m_length
private

Definition at line 98 of file KaiserWindow.h.

◆ m_window

std::vector<double> KaiserWindow::m_window
private

Definition at line 100 of file KaiserWindow.h.


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