annotate 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 |
rev |
line source |
cannam@0
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
cannam@0
|
2
|
cannam@0
|
3 /*
|
cannam@0
|
4 QM DSP Library
|
cannam@0
|
5
|
cannam@0
|
6 Centre for Digital Music, Queen Mary, University of London.
|
cannam@0
|
7 This file copyright 2005-2006 Christian Landone.
|
cannam@0
|
8 All rights reserved.
|
cannam@0
|
9 */
|
cannam@0
|
10
|
cannam@0
|
11 #ifndef PHASEVOCODER_H
|
cannam@0
|
12 #define PHASEVOCODER_H
|
cannam@0
|
13
|
cannam@0
|
14
|
cannam@0
|
15 class PhaseVocoder
|
cannam@0
|
16 {
|
cannam@0
|
17 public:
|
cannam@0
|
18 PhaseVocoder();
|
cannam@0
|
19 virtual ~PhaseVocoder();
|
cannam@0
|
20
|
cannam@0
|
21 void process( unsigned int size, double* src, double* mag, double* theta);
|
cannam@0
|
22
|
cannam@0
|
23 protected:
|
cannam@0
|
24 void getPhase(unsigned int size, double *theta, double *real, double *imag);
|
cannam@0
|
25 void coreFFT( unsigned int NumSamples, double *RealIn, double* ImagIn, double *RealOut, double *ImagOut);
|
cannam@0
|
26 void getMagnitude( unsigned int size, double* mag, double* real, double* imag);
|
cannam@55
|
27 void FFTShift( unsigned int size, double* src);
|
cannam@0
|
28
|
cannam@0
|
29 double* imagOut;
|
cannam@0
|
30 double* realOut;
|
cannam@0
|
31
|
cannam@0
|
32 };
|
cannam@0
|
33
|
cannam@0
|
34 #endif
|