1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 07:29:29 +02:00
audacity/src/Spectrum.h
Leland Lucius 9212629945 Added zoom and pan plus fix for bug #884
It started out as just the fix for #884, but it went
a bit further.  Steve had the idea for the zoom and
pan addition, so I added it while I was working on
2015-05-03 15:23:33 -05:00

30 lines
713 B
C

/**********************************************************************
Audacity: A Digital Audio Editor
Spectrum.h
Dominic Mazzoni
**********************************************************************/
#ifndef __AUDACITY_SPECTRUM__
#define __AUDACITY_SPECTRUM__
#include "WaveTrack.h"
#include "FFT.h"
/*
This function computes the power (mean square amplitude) as
a function of frequency, for some block of audio data.
width: the number of samples
calculates windowSize/2 frequency samples
*/
bool ComputeSpectrum(float * data, int width, int windowSize,
double rate, float *out, bool autocorrelation,
int windowFunc = eWinFuncHanning);
#endif