Signalsmith Audio's DSP Library  1.6.1
Useful C++ classes/templates for audio effects
Loading...
Searching...
No Matches
Window functions

Description

Windows for spectral analysis.

These are generally double-precision, because they are mostly calculated during setup/reconfiguring, not real-time code.

Files

file  windows.h
 

Classes

class  signalsmith::windows::Kaiser
 The Kaiser window (almost) maximises the energy in the main-lobe compared to the side-lobes. More...
 
class  signalsmith::windows::ApproximateConfinedGaussian
 The Approximate Confined Gaussian window is (almost) optimal. More...
 

Functions

template<typename Data>
void signalsmith::windows::forcePerfectReconstruction (Data &&data, int windowLength, int interval)
 Forces STFT perfect-reconstruction (WOLA) on an existing window, for a given STFT interval.
 

Function Documentation

◆ forcePerfectReconstruction()

template<typename Data>
void signalsmith::windows::forcePerfectReconstruction ( Data && data,
int windowLength,
int interval )

Forces STFT perfect-reconstruction (WOLA) on an existing window, for a given STFT interval.

For example, here are perfect-reconstruction versions of the approximately-optimal Kaiser windows:

Note the lower overall energy, and the pointy top for 2x bandwidth. Spectral performance is about the same, though.