Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
SpectrumTransformer::Window Struct Reference

Derive this class to add information to the queue. More...

#include <SpectrumTransformer.h>

Collaboration diagram for SpectrumTransformer::Window:
[legend]

Public Member Functions

 Window (size_t windowSize)
 
virtual ~Window ()
 
void Zero ()
 

Public Attributes

FloatVector mRealFFTs
 index zero holds the dc coefficient, which has no imaginary part More...
 
FloatVector mImagFFTs
 index zero holds the nyquist frequency coefficient, actually real More...
 

Detailed Description

Derive this class to add information to the queue.

See also
NewWindow()

Definition at line 84 of file SpectrumTransformer.h.

Constructor & Destructor Documentation

◆ Window()

SpectrumTransformer::Window::Window ( size_t  windowSize)
inlineexplicit

Definition at line 86 of file SpectrumTransformer.h.

87 : mRealFFTs( windowSize / 2 )
88 , mImagFFTs( windowSize / 2 )
89 {
90 }
FloatVector mRealFFTs
index zero holds the dc coefficient, which has no imaginary part
FloatVector mImagFFTs
index zero holds the nyquist frequency coefficient, actually real

◆ ~Window()

SpectrumTransformer::Window::~Window ( )
virtualdefault

Member Function Documentation

◆ Zero()

void SpectrumTransformer::Window::Zero ( )
inline

Definition at line 94 of file SpectrumTransformer.h.

95 {
96 const auto size = mRealFFTs.size();
97 auto pFill = mRealFFTs.data();
98 std::fill(pFill, pFill + size, 0.0f);
99 pFill = mImagFFTs.data();
100 std::fill(pFill, pFill + size, 0.0f);
101 }

References size.

Member Data Documentation

◆ mImagFFTs

FloatVector SpectrumTransformer::Window::mImagFFTs

index zero holds the nyquist frequency coefficient, actually real

Definition at line 106 of file SpectrumTransformer.h.

Referenced by SpectrumTransformer::OutputStep().

◆ mRealFFTs

FloatVector SpectrumTransformer::Window::mRealFFTs

index zero holds the dc coefficient, which has no imaginary part

Definition at line 104 of file SpectrumTransformer.h.

Referenced by SpectrumTransformer::OutputStep().


The documentation for this struct was generated from the following files: