#include <beatanalyser.h>
Public Member Functions | |
BeatAnalyser (uint16_t m_bandCount, uint32_t m_sampleRate, uint16_t m_recordSize) | |
Band * | getBand (uint16_t pos) |
uint16_t | getBands () |
bool | getBeat (uint16_t pos) |
bool | getBeatFrequency (uint32_t frequency) |
bool | getDrumBeat () |
double | getMagSpectrum (uint32_t low, uint32_t high) |
double | getMaxBandValue () |
bool | getSnareBeat () |
void | processData () |
void | setFFT (FFT *value) |
~BeatAnalyser () | |
Private Attributes | |
uint16_t | m_bandCount |
std::vector< bool > * | m_beats |
FFT * | m_FFT |
double | m_maxBandValue |
uint16_t | m_recordSize |
uint32_t | m_sampleRate |
std::vector< Band * > * | m_SubBands |
Definition at line 65 of file beatanalyser.h.
mybeat::BeatAnalyser::BeatAnalyser | ( | uint16_t | m_bandCount, |
uint32_t | m_sampleRate, | ||
uint16_t | m_recordSize | ||
) |
Definition at line 59 of file beatanalyser.cpp.
Definition at line 75 of file beatanalyser.cpp.
Band * mybeat::BeatAnalyser::getBand | ( | uint16_t | pos | ) |
Definition at line 167 of file beatanalyser.cpp.
uint16_t mybeat::BeatAnalyser::getBands | ( | ) | [inline] |
Definition at line 77 of file beatanalyser.h.
bool mybeat::BeatAnalyser::getBeat | ( | uint16_t | pos | ) |
Definition at line 130 of file beatanalyser.cpp.
bool mybeat::BeatAnalyser::getBeatFrequency | ( | uint32_t | frequency | ) |
Definition at line 137 of file beatanalyser.cpp.
bool mybeat::BeatAnalyser::getDrumBeat | ( | ) |
Definition at line 142 of file beatanalyser.cpp.
double mybeat::BeatAnalyser::getMagSpectrum | ( | uint32_t | low, |
uint32_t | high | ||
) |
Definition at line 104 of file beatanalyser.cpp.
double mybeat::BeatAnalyser::getMaxBandValue | ( | ) | [inline] |
Definition at line 89 of file beatanalyser.h.
bool mybeat::BeatAnalyser::getSnareBeat | ( | ) |
Definition at line 156 of file beatanalyser.cpp.
void mybeat::BeatAnalyser::processData | ( | ) |
Definition at line 80 of file beatanalyser.cpp.
void mybeat::BeatAnalyser::setFFT | ( | FFT * | value | ) | [inline] |
Definition at line 71 of file beatanalyser.h.
uint16_t mybeat::BeatAnalyser::m_bandCount [private] |
Definition at line 92 of file beatanalyser.h.
std::vector<bool>* mybeat::BeatAnalyser::m_beats [private] |
Definition at line 97 of file beatanalyser.h.
FFT* mybeat::BeatAnalyser::m_FFT [private] |
Definition at line 95 of file beatanalyser.h.
double mybeat::BeatAnalyser::m_maxBandValue [private] |
Definition at line 98 of file beatanalyser.h.
uint16_t mybeat::BeatAnalyser::m_recordSize [private] |
Definition at line 94 of file beatanalyser.h.
uint32_t mybeat::BeatAnalyser::m_sampleRate [private] |
Definition at line 93 of file beatanalyser.h.
std::vector<Band*>* mybeat::BeatAnalyser::m_SubBands [private] |
Definition at line 96 of file beatanalyser.h.