Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/analyserbpm.h

Go to the documentation of this file.
00001 #ifndef ANALYSER_BPM_H
00002 #define ANALYSER_BPM_H
00003 
00004 #include "BPMDetect.h"
00005 
00006 #include "analyser.h"
00007 #include "configobject.h"
00008 
00009 
00010 class AnalyserBPM : public Analyser {
00011   public:
00012     AnalyserBPM(ConfigObject<ConfigValue> *_config);
00013     void initialise(TrackPointer tio, int sampleRate, int totalSamples);
00014     void process(const CSAMPLE *pIn, const int iLen);
00015     void finalise(TrackPointer tio);
00016 
00017   private:
00018     float correctBPM(float BPM, int min, int max, int aboveRange);
00019 
00020     ConfigObject<ConfigValue> *m_pConfig;
00021     soundtouch::BPMDetect *m_pDetector;
00022     int m_iMinBpm, m_iMaxBpm;
00023     bool m_bProcessEntireSong;
00024 };
00025 
00026 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines