Ardour
9.0-pre0-582-g084a23a80d
|
#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 |
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.
|
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.
|
inline |
Definition at line 47 of file SincWindow.h.
|
inline |
Definition at line 43 of file SincWindow.h.
|
inline |
Definition at line 35 of file SincWindow.h.
|
inline |
Definition at line 39 of file SincWindow.h.
|
private |
|
private |
Definition at line 54 of file SincWindow.h.
|
private |
Definition at line 55 of file SincWindow.h.
|
private |
Definition at line 56 of file SincWindow.h.