HephAudio v3.0.6
A cross-platform C++ library for recording, playing, and processing audio on Windows, Android, Linux, iOS, and macOS.
|
generates Tukey window. More...
#include <TukeyWindow.h>
Public Member Functions | |
TukeyWindow () | |
TukeyWindow (size_t size) | |
TukeyWindow (size_t size, double alpha) | |
double | operator[] (size_t n) const override |
void | SetSize (size_t newSize) override |
double | GetAlpha () const |
void | SetAlpha (double alpha) |
Public Member Functions inherited from HephAudio::Window | |
virtual | ~Window ()=default |
Heph::DoubleBuffer | GenerateBuffer () const |
size_t | GetSize () const |
Additional Inherited Members | |
Protected Member Functions inherited from HephAudio::Window | |
Window () | |
Window (size_t size) | |
Protected Attributes inherited from HephAudio::Window | |
size_t | size |
generates Tukey window.
HephAudio::TukeyWindow::TukeyWindow | ( | ) |
creates a new instance and initializes it with default values.
HephAudio::TukeyWindow::TukeyWindow | ( | size_t | size | ) |
creates a new instance and initializes it with the provided values.
size | size of the window |
HephAudio::TukeyWindow::TukeyWindow | ( | size_t | size, |
double | alpha ) |
creates a new instance and initializes it with the provided values.
size | size of the window |
alpha | controls the window shape. |
|
overridevirtual |
calculates the sample at index n.
Implements HephAudio::Window.
|
overridevirtual |
sets the size of the window.
Reimplemented from HephAudio::Window.
double HephAudio::TukeyWindow::GetAlpha | ( | ) | const |
gets alpha.
void HephAudio::TukeyWindow::SetAlpha | ( | double | alpha | ) |
sets alpha.