andrew@0: /* andrew@0: * AudioAnalysis.h andrew@0: * audioFileLoader4 andrew@0: * andrew@0: * Created by Andrew on 14/08/2011. andrew@0: * Copyright 2011 QMUL. All rights reserved. andrew@0: * andrew@0: */ andrew@0: andrew@0: #ifndef AUDIO_ANALYSIS_H andrew@0: #define AUDIO_ANALYSIS_H andrew@0: andrew@0: andrew@0: #include "fftw3.h" andrew@0: #include "ofMain.h" andrew@0: #include "chromaGram.h" andrew@0: #include "ChordDetect.h" andrew@0: #include "sndfile.h" andrew@0: #include "ofxFileDialogOSX.h" andrew@0: #include "AudioFile.h" andrew@0: andrew@0: //this does a chromagram analysis and aubio onset analysis andrew@0: //held in double matrix and doubleVector respectively andrew@0: //these are dynamic vectors, so size set by what's needed for the file andrew@0: andrew@0: class AudioAnalysis{ andrew@0: andrew@0: public: andrew@0: /* andrew@0: double getEnergyOfFrame(); andrew@0: // void putEnergyInFrame(); andrew@0: andrew@0: void initialiseVariables(); andrew@0: andrew@0: andrew@0: typedef std::vector DoubleVector; andrew@0: typedef std::vector DoubleMatrix; andrew@0: andrew@0: */ andrew@0: andrew@0: andrew@0: }; andrew@0: #endif andrew@0: andrew@0: andrew@0: