Ardour  8.7-15-gadf511264b
SincWindow Class Reference

#include <SincWindow.h>

Public Member Functions

 SincWindow (int length, double p)
 
int getLength () const
 
const double * getWindow () const
 
void cut (double *src) const
 
void cut (const double *src, double *dst) const
 

Private Member Functions

void init ()
 

Private Attributes

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

Detailed Description

A window containing values of the sinc function, i.e. sin(x)/x with sinc(0) == 1, with x == 0 at the centre.

Definition at line 23 of file SincWindow.h.

Constructor & Destructor Documentation

◆ SincWindow()

SincWindow::SincWindow ( int  length,
double  p 
)
inline

Construct a windower of the given length, containing the values of sinc(x) with x=0 in the middle, i.e. at sample (length-1)/2 for odd or (length/2)+1 for even length, such that the distance from -pi to pi (the nearest zero crossings either side of the peak) is p samples.

Definition at line 33 of file SincWindow.h.

Member Function Documentation

◆ cut() [1/2]

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

Definition at line 47 of file SincWindow.h.

◆ cut() [2/2]

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

Definition at line 43 of file SincWindow.h.

◆ getLength()

int SincWindow::getLength ( ) const
inline

Definition at line 35 of file SincWindow.h.

◆ getWindow()

const double* SincWindow::getWindow ( ) const
inline

Definition at line 39 of file SincWindow.h.

◆ init()

void SincWindow::init ( )
private

Member Data Documentation

◆ m_length

int SincWindow::m_length
private

Definition at line 54 of file SincWindow.h.

◆ m_p

double SincWindow::m_p
private

Definition at line 55 of file SincWindow.h.

◆ m_window

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

Definition at line 56 of file SincWindow.h.


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