Audacity
3.2.0
libraries
lib-fft
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
24
FFT_API
25
bool
ComputeSpectrum
(
26
const
float
* data,
size_t
width,
size_t
windowSize,
float
* out,
27
bool
autocorrelation,
int
windowFunc =
eWinFuncHann
);
28
29
#endif
FFT.h
eWinFuncHann
@ eWinFuncHann
Definition:
FFT.h:114
ComputeSpectrum
FFT_API bool ComputeSpectrum(const float *data, size_t width, size_t windowSize, float *out, bool autocorrelation, int windowFunc=eWinFuncHann)
Definition:
Spectrum.cpp:22
Generated by
1.9.3