Audacity 3.2.0
Spectrum.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 Spectrum.h
6
7 Dominic Mazzoni
8
9**********************************************************************/
10
11#ifndef __AUDACITY_SPECTRUM__
12#define __AUDACITY_SPECTRUM__
13
14#include "FFT.h"
15
16/*
17 This function computes the power (mean square amplitude) as
18 a function of frequency, for some block of audio data.
19
20 width: the number of samples
21 calculates windowSize/2 frequency samples
22*/
23
24FFT_API
26 const float* data, size_t width, size_t windowSize, float* out,
27 bool autocorrelation, int windowFunc = eWinFuncHann);
28
29#endif
@ eWinFuncHann
Definition: FFT.h:114
FFT_API bool ComputeSpectrum(const float *data, size_t width, size_t windowSize, float *out, bool autocorrelation, int windowFunc=eWinFuncHann)
Definition: Spectrum.cpp:22