Audacity 3.2.0
|
#include <wx/defs.h>
#include <wx/wxchar.h>
Go to the source code of this file.
Macros | |
#define | M_PI 3.14159265358979323846 /* pi */ |
Enumerations | |
enum | eWindowFunctions : int { eWinFuncRectangular , eWinFuncBartlett , eWinFuncHamming , eWinFuncHann , eWinFuncBlackman , eWinFuncBlackmanHarris , eWinFuncWelch , eWinFuncGaussian25 , eWinFuncGaussian35 , eWinFuncGaussian45 , eWinFuncCount } |
Functions | |
FFT_API void | PowerSpectrum (size_t NumSamples, const float *In, float *Out) |
FFT_API void | RealFFT (size_t NumSamples, const float *RealIn, float *RealOut, float *ImagOut) |
FFT_API void | InverseRealFFT (size_t NumSamples, const float *RealIn, const float *ImagIn, float *RealOut) |
FFT_API void | FFT (size_t NumSamples, bool InverseTransform, const float *RealIn, const float *ImagIn, float *RealOut, float *ImagOut) |
FFT_API void | WindowFunc (int whichFunction, size_t NumSamples, float *data) |
FFT_API void | NewWindowFunc (int whichFunction, size_t NumSamples, bool extraSample, float *data) |
FFT_API void | DerivativeOfWindowFunc (int whichFunction, size_t NumSamples, bool extraSample, float *data) |
FFT_API const TranslatableString | WindowFuncName (int whichFunction) |
FFT_API int | NumWindowFuncs () |
FFT_API void | DeinitFFT () |
enum eWindowFunctions : int |
Definition at line 109 of file FFT.h.
FFT_API void DeinitFFT | ( | ) |
Definition at line 112 of file FFT.cpp.
References gFFTBitTable.
Referenced by AudacityApp::OnExit().
FFT_API void DerivativeOfWindowFunc | ( | int | whichFunction, |
size_t | NumSamples, | ||
bool | extraSample, | ||
float * | data | ||
) |
Definition at line 536 of file FFT.cpp.
References A, eWinFuncBartlett, eWinFuncBlackman, eWinFuncBlackmanHarris, eWinFuncGaussian25, eWinFuncGaussian35, eWinFuncGaussian45, eWinFuncHamming, eWinFuncHann, eWinFuncRectangular, eWinFuncWelch, and M_PI.
Referenced by anonymous_namespace{SpectrogramSettings.cpp}::RecreateWindow().
FFT_API void FFT | ( | size_t | NumSamples, |
bool | InverseTransform, | ||
const float * | RealIn, | ||
const float * | ImagIn, | ||
float * | RealOut, | ||
float * | ImagOut | ||
) |
Definition at line 129 of file FFT.cpp.
References FastReverseBits(), gFFTBitTable, InitFFT(), IsPowerOfTwo(), M_PI, and NumberOfBitsNeeded().
Referenced by SpecPowerCalculation::CalcPower(), and PaulStretch::process().
FFT_API void InverseRealFFT | ( | size_t | NumSamples, |
const float * | RealIn, | ||
const float * | ImagIn, | ||
float * | RealOut | ||
) |
Definition at line 266 of file FFT.cpp.
References GetFFT(), InverseRealFFTf(), and ReorderToTime().
Referenced by EqualizationFilter::CalcFilter(), SpectrumAnalyst::Calculate(), and EqualizationPanel::Recalc().
FFT_API void NewWindowFunc | ( | int | whichFunction, |
size_t | NumSamples, | ||
bool | extraSample, | ||
float * | data | ||
) |
Definition at line 368 of file FFT.cpp.
References A, eWinFuncBartlett, eWinFuncBlackman, eWinFuncBlackmanHarris, eWinFuncGaussian25, eWinFuncGaussian35, eWinFuncGaussian45, eWinFuncHamming, eWinFuncHann, eWinFuncRectangular, eWinFuncWelch, and M_PI.
Referenced by anonymous_namespace{SpectrogramSettings.cpp}::RecreateWindow(), SpectrumTransformer::SpectrumTransformer(), and WindowFunc().
FFT_API int NumWindowFuncs | ( | ) |
Definition at line 327 of file FFT.cpp.
References eWinFuncCount.
Referenced by SpectrumAnalyst::Calculate(), FrequencyPlotDialog::Populate(), SpectrumPrefs::Populate(), and SpectrogramSettings::Validate().
FFT_API void PowerSpectrum | ( | size_t | NumSamples, |
const float * | In, | ||
float * | Out | ||
) |
Definition at line 302 of file FFT.cpp.
References GetFFT(), and RealFFTf().
Referenced by SpectrumAnalyst::Calculate(), and ComputeSpectrum().
FFT_API void RealFFT | ( | size_t | NumSamples, |
const float * | RealIn, | ||
float * | RealOut, | ||
float * | ImagOut | ||
) |
Definition at line 228 of file FFT.cpp.
References GetFFT(), and RealFFTf().
Referenced by EqualizationFilter::CalcFilter(), SpectrumAnalyst::Calculate(), ComputeSpectrum(), and PaulStretch::process().
FFT_API void WindowFunc | ( | int | whichFunction, |
size_t | NumSamples, | ||
float * | data | ||
) |
Definition at line 513 of file FFT.cpp.
References eWinFuncBartlett, eWinFuncBlackman, eWinFuncBlackmanHarris, eWinFuncHamming, eWinFuncHann, and NewWindowFunc().
Referenced by SpectrumAnalyst::Calculate(), ComputeSpectrum(), and PaulStretch::process().
FFT_API const TranslatableString WindowFuncName | ( | int | whichFunction | ) |
Definition at line 332 of file FFT.cpp.
References eWinFuncBartlett, eWinFuncBlackman, eWinFuncBlackmanHarris, eWinFuncGaussian25, eWinFuncGaussian35, eWinFuncGaussian45, eWinFuncHamming, eWinFuncHann, eWinFuncRectangular, eWinFuncWelch, and XO().
Referenced by FrequencyPlotDialog::Populate(), and SpectrumPrefs::Populate().