annotate dsp/phasevocoder/PhaseVocoder.h @ 3:07ac3de1e53b

* Give the chromagram an alternative entry point passing in frequency domain data * Centre the Hamming windows and do an fftshift when calculating sparse kernel
author cannam
date Mon, 15 May 2006 15:07:27 +0000
parents d7116e3183f8
children 7fe29d8a7eaf
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 void FFTShift( unsigned int size, double* src);
cannam@0 23
cannam@0 24 protected:
cannam@0 25 void getPhase(unsigned int size, double *theta, double *real, double *imag);
cannam@0 26 void coreFFT( unsigned int NumSamples, double *RealIn, double* ImagIn, double *RealOut, double *ImagOut);
cannam@0 27 void getMagnitude( unsigned int size, double* mag, double* real, double* imag);
cannam@0 28
cannam@0 29 double* shiftBuffer;
cannam@0 30 double* imagOut;
cannam@0 31 double* realOut;
cannam@0 32
cannam@0 33 };
cannam@0 34
cannam@0 35 #endif