mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
31 lines
617 B
C
31 lines
617 B
C
//
|
|
// internal.h
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
#ifndef _internal_h
|
|
#define _internal_h
|
|
|
|
#ifndef _USE_MATH_DEFINES
|
|
#define _USE_MATH_DEFINES 1
|
|
#endif
|
|
#include <math.h>
|
|
|
|
// hanning window
|
|
// 'x' is the independent variable of the window function.
|
|
// 'x' is actually i/window_length, it's from 0 to 1-(1/window_length)
|
|
float hann(double x);
|
|
|
|
// hamming window
|
|
// 'x' is the independent variable of the window function.
|
|
// 'x' is actually i/window_length, it's from 0 to 1-(1/window_length)
|
|
float hamm(double x);
|
|
|
|
// FFT shift
|
|
// VectorLength must be an even integer
|
|
void OneDimensionFFTshift(float vector[],int VectorLength);
|
|
|
|
#endif
|