comparison dsp/phasevocoder/PhaseVocoder.h @ 55:7fe29d8a7eaf

* Various fixes related to the bar estimator code
author cannam
date Tue, 10 Feb 2009 16:37:11 +0000
parents d7116e3183f8
children 6cb2b3cd5356
comparison
equal deleted inserted replaced
54:5bec06ecc88a 55:7fe29d8a7eaf
17 public: 17 public:
18 PhaseVocoder(); 18 PhaseVocoder();
19 virtual ~PhaseVocoder(); 19 virtual ~PhaseVocoder();
20 20
21 void process( unsigned int size, double* src, double* mag, double* theta); 21 void process( unsigned int size, double* src, double* mag, double* theta);
22 void FFTShift( unsigned int size, double* src);
23 22
24 protected: 23 protected:
25 void getPhase(unsigned int size, double *theta, double *real, double *imag); 24 void getPhase(unsigned int size, double *theta, double *real, double *imag);
26 void coreFFT( unsigned int NumSamples, double *RealIn, double* ImagIn, double *RealOut, double *ImagOut); 25 void coreFFT( unsigned int NumSamples, double *RealIn, double* ImagIn, double *RealOut, double *ImagOut);
27 void getMagnitude( unsigned int size, double* mag, double* real, double* imag); 26 void getMagnitude( unsigned int size, double* mag, double* real, double* imag);
27 void FFTShift( unsigned int size, double* src);
28 28
29 double* shiftBuffer;
30 double* imagOut; 29 double* imagOut;
31 double* realOut; 30 double* realOut;
32 31
33 }; 32 };
34 33