annotate Spectrogram.h @ 10:17a260410116

Change NULL to 0 throughout
author Chris Cannam
date Tue, 12 Aug 2014 16:20:14 +0100
parents be59b4a73f49
children 09fb76606b2b
rev   line source
c@7 1 //
c@7 2 // Spectrogram.h
c@7 3 // Tempogram
c@7 4 //
c@7 5 // Created by Carl Bussey on 07/08/2014.
c@7 6 // Copyright (c) 2014 Carl Bussey. All rights reserved.
c@7 7 //
c@7 8
c@7 9 #ifndef __Tempogram__Spectrogram__
c@7 10 #define __Tempogram__Spectrogram__
c@7 11 #include <vector>
c@7 12 #include <vamp-sdk/FFT.h>
c@7 13 #include <cmath>
c@7 14
c@7 15 class Spectrogram{
c@7 16 int m_inputLength;
c@9 17 int m_windowLength;
c@7 18 int m_fftLength;
c@7 19 int m_hopSize;
c@7 20 int m_numberOfOutputBins;
c@7 21 double * fftInput;
c@7 22 double * fftOutputReal;
c@7 23 double * fftOutputImag;
c@7 24 std::vector< std::vector <float> > spectrogramOutput;
c@7 25
c@7 26 void initialise();
c@7 27 void cleanup();
c@7 28 public:
c@7 29 std::vector< std::vector<float> > audioToMagnitudeSpectrogram(const float * const input, const float * window);
c@9 30 Spectrogram(unsigned int inputLength, unsigned int windowLength, unsigned int fftLength, unsigned int hopSize);
c@7 31 ~Spectrogram();
c@7 32 };
c@7 33
c@7 34 #endif /* defined(__Tempogram__Spectrogram__) */