A class which provides multiple windowing functions useful for filter design and spectrum analyzers. More...
#include <juce_Windowing.h>
Public Types | |
enum | WindowingMethod { rectangular = 0, triangular, hann, hamming, blackman, blackmanHarris, flatTop, kaiser, numWindowingMethods } |
The windowing methods available. More... | |
Public Member Functions | |
WindowingFunction (size_t size, WindowingMethod, bool normalise=true, FloatType beta=0) | |
This constructor automatically fills a buffer of the specified size using the fillWindowingTables function and the specified arguments. More... | |
void | fillWindowingTables (size_t size, WindowingMethod type, bool normalise=true, FloatType beta=0) noexcept |
Fills the content of the object array with a given windowing method table. More... | |
void | multiplyWithWindowingTable (FloatType *samples, size_t size) noexcept |
Multiplies the content of a buffer with the given window. More... | |
Static Public Member Functions | |
static void | fillWindowingTables (FloatType *samples, size_t size, WindowingMethod, bool normalise=true, FloatType beta=0) noexcept |
Fills the content of an array with a given windowing method table. More... | |
static const char * | getWindowingMethodName (WindowingMethod) noexcept |
Returns the name of a given windowing method. More... | |
Private Attributes | |
Array< FloatType > | windowTable |
A class which provides multiple windowing functions useful for filter design and spectrum analyzers.
The different functions provided here can be used by creating either a WindowingFunction object, or a static function to fill an array with the windowing method samples.
@tags{DSP}
enum juce::dsp::WindowingFunction::WindowingMethod |
juce::dsp::WindowingFunction< FloatType >::WindowingFunction | ( | size_t | size, |
WindowingMethod | , | ||
bool | normalise = true , |
||
FloatType | beta = 0 |
||
) |
This constructor automatically fills a buffer of the specified size using the fillWindowingTables function and the specified arguments.
|
staticnoexcept |
Fills the content of an array with a given windowing method table.
samples | the destination buffer pointer |
size | the size of the destination buffer allocated in the object |
normalise | if the result must be normalised, creating a DC amplitude response of one |
beta | an optional argument useful only for Kaiser's method, which must be positive and sets the properties of the method (bandwidth and attenuation increases with beta) |
|
noexcept |
Fills the content of the object array with a given windowing method table.
size | the size of the destination buffer allocated in the object |
type | the type of windowing method being used |
normalise | if the result must be normalised, creating a DC amplitude response of one |
beta | an optional argument useful only for Kaiser's method which must be positive and sets the properties of the method (bandwidth and attenuation increases with beta) |
|
staticnoexcept |
Returns the name of a given windowing method.
|
noexcept |
Multiplies the content of a buffer with the given window.
|
private |