mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 09:31:15 +02:00
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
This commit is contained in:
39
src/Spectrum.h
Normal file
39
src/Spectrum.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
Spectrum.h
|
||||
|
||||
Dominic Mazzoni
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_SPECTRUM__
|
||||
#define __AUDACITY_SPECTRUM__
|
||||
|
||||
#include "WaveTrack.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=3);
|
||||
|
||||
#endif
|
||||
|
||||
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
|
||||
// version control system. Please do not modify past this point.
|
||||
//
|
||||
// Local Variables:
|
||||
// c-basic-offset: 3
|
||||
// indent-tabs-mode: nil
|
||||
// End:
|
||||
//
|
||||
// vim: et sts=3 sw=3
|
||||
// arch-tag: a3211706-7547-4b7a-b970-1ac937be7ace
|
||||
|
Reference in New Issue
Block a user