comparison dsp/phasevocoder/PhaseVocoder.h @ 0:d7116e3183f8

* Queen Mary C++ DSP library
author cannam
date Wed, 05 Apr 2006 17:35:59 +0000
parents
children 7fe29d8a7eaf
comparison
equal deleted inserted replaced
-1:000000000000 0:d7116e3183f8
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 QM DSP Library
5
6 Centre for Digital Music, Queen Mary, University of London.
7 This file copyright 2005-2006 Christian Landone.
8 All rights reserved.
9 */
10
11 #ifndef PHASEVOCODER_H
12 #define PHASEVOCODER_H
13
14
15 class PhaseVocoder
16 {
17 public:
18 PhaseVocoder();
19 virtual ~PhaseVocoder();
20
21 void process( unsigned int size, double* src, double* mag, double* theta);
22 void FFTShift( unsigned int size, double* src);
23
24 protected:
25 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);
27 void getMagnitude( unsigned int size, double* mag, double* real, double* imag);
28
29 double* shiftBuffer;
30 double* imagOut;
31 double* realOut;
32
33 };
34
35 #endif