AuxPort 0.2
Modules for Audio Software Development
Loading...
Searching...
No Matches
AuxPort::Audio::Window Class Reference

Computes Window functions such as Hann,Hamming,Kaiser. More...

#include <AuxWindow.h>

Public Types

enum  Type {
  HannWin , HammWin , BlackmanWin , BartlettWin ,
  BartlettHannWin , NuttallWin , FlatWin , BlackmanHarrisWin ,
  RectangleWin
}
 Specifies the type of window. More...
 

Static Public Member Functions

template<class sample >
static void generate (std::vector< sample > &windowBuffer, const Type &windowType=Type::HannWin)
 Samples a Window function and fills it in a memory allocated std::vector.
 
template<class sample >
static std::vector< sample > generate (size_t windowSize, Type windowType=Type::HannWin)
 Returns a std::vector with a Sampled Window Function.
 

Detailed Description

Computes Window functions such as Hann,Hamming,Kaiser.

Definition at line 53 of file AuxWindow.h.

Member Enumeration Documentation

◆ Type

Specifies the type of window.

Definition at line 59 of file AuxWindow.h.

Member Function Documentation

◆ generate() [1/2]

template<class sample >
static std::vector< sample > AuxPort::Audio::Window::generate ( size_t windowSize,
Type windowType = Type::HannWin )
inlinestatic

Returns a std::vector with a Sampled Window Function.

Definition at line 110 of file AuxWindow.h.

◆ generate() [2/2]

template<class sample >
static void AuxPort::Audio::Window::generate ( std::vector< sample > & windowBuffer,
const Type & windowType = Type::HannWin )
inlinestatic

Samples a Window function and fills it in a memory allocated std::vector.

Definition at line 68 of file AuxWindow.h.


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