#include <beatcontroller.h>
Public Member Functions | |
void | addCustomBeat (uint16_t value) |
BeatController (uint16_t recordSize=0, uint32_t sampleRate=0, uint16_t m_bandCount=0, uint16_t channels=2) | |
std::vector< BeatAnalyser * > | getAnalysers () |
std::vector< SoundBuffer * > | getBuffers () |
bool | getEnabled () |
std::vector< FFT * > | getFFTs () |
void | removeCustomBeat (uint16_t value) |
boost::signals2::signal< void(std::tr1::unordered_set < uint16_t >)> * | signalBeatCustom () |
boost::signals2::signal< void()> * | signalBeatDrum () |
boost::signals2::signal< void()> * | signalBeatSnare () |
boost::signals2::signal< void()> * | signalProcessingDone () |
void | start () |
void | stop () |
~BeatController () | |
Private Member Functions | |
void | processNewData () |
Private Attributes | |
std::vector< BeatAnalyser * > | m_Analysers |
std::vector< SoundBuffer * > | m_Buffers |
boost::signals2::connection | m_connectionProcessingDone |
std::tr1::unordered_set< uint16_t > | m_customBeats |
bool | m_enabled |
std::vector< FFT * > | m_FFTs |
SoundRecorder * | m_Recorder |
boost::signals2::signal< void()> | m_sigBeatDrum |
boost::signals2::signal< void()> | m_sigBeatSnare |
boost::signals2::signal< void(std::tr1::unordered_set < uint16_t >)> | m_sigCustom |
boost::signals2::signal< void()> | m_sigProcessingDone |
Definition at line 73 of file beatcontroller.h.
mybeat::BeatController::BeatController | ( | uint16_t | recordSize = 0 , |
uint32_t | sampleRate = 0 , |
||
uint16_t | m_bandCount = 0 , |
||
uint16_t | channels = 2 |
||
) |
Definition at line 62 of file beatcontroller.cpp.
Definition at line 84 of file beatcontroller.cpp.
void mybeat::BeatController::addCustomBeat | ( | uint16_t | value | ) | [inline] |
Definition at line 92 of file beatcontroller.h.
std::vector<BeatAnalyser*> mybeat::BeatController::getAnalysers | ( | ) | [inline] |
Definition at line 82 of file beatcontroller.h.
std::vector<SoundBuffer*> mybeat::BeatController::getBuffers | ( | ) | [inline] |
Definition at line 84 of file beatcontroller.h.
bool mybeat::BeatController::getEnabled | ( | ) |
Definition at line 111 of file beatcontroller.cpp.
std::vector<FFT*> mybeat::BeatController::getFFTs | ( | ) | [inline] |
Definition at line 80 of file beatcontroller.h.
void mybeat::BeatController::processNewData | ( | ) | [private] |
Definition at line 116 of file beatcontroller.cpp.
void mybeat::BeatController::removeCustomBeat | ( | uint16_t | value | ) | [inline] |
Definition at line 94 of file beatcontroller.h.
boost::signals2::signal<void (std::tr1::unordered_set<uint16_t>)>* mybeat::BeatController::signalBeatCustom | ( | ) | [inline] |
Definition at line 99 of file beatcontroller.h.
boost::signals2::signal<void ()>* mybeat::BeatController::signalBeatDrum | ( | ) | [inline] |
Definition at line 97 of file beatcontroller.h.
boost::signals2::signal<void ()>* mybeat::BeatController::signalBeatSnare | ( | ) | [inline] |
Definition at line 98 of file beatcontroller.h.
boost::signals2::signal<void ()>* mybeat::BeatController::signalProcessingDone | ( | ) | [inline] |
Definition at line 96 of file beatcontroller.h.
void mybeat::BeatController::start | ( | ) |
Definition at line 92 of file beatcontroller.cpp.
void mybeat::BeatController::stop | ( | ) |
Definition at line 103 of file beatcontroller.cpp.
std::vector<BeatAnalyser*> mybeat::BeatController::m_Analysers [private] |
Definition at line 106 of file beatcontroller.h.
std::vector<SoundBuffer*> mybeat::BeatController::m_Buffers [private] |
Definition at line 105 of file beatcontroller.h.
boost::signals2::connection mybeat::BeatController::m_connectionProcessingDone [private] |
Definition at line 114 of file beatcontroller.h.
std::tr1::unordered_set<uint16_t> mybeat::BeatController::m_customBeats [private] |
Definition at line 109 of file beatcontroller.h.
bool mybeat::BeatController::m_enabled [private] |
Definition at line 107 of file beatcontroller.h.
std::vector<FFT*> mybeat::BeatController::m_FFTs [private] |
Definition at line 104 of file beatcontroller.h.
SoundRecorder* mybeat::BeatController::m_Recorder [private] |
Definition at line 103 of file beatcontroller.h.
boost::signals2::signal<void ()> mybeat::BeatController::m_sigBeatDrum [private] |
Definition at line 116 of file beatcontroller.h.
boost::signals2::signal<void ()> mybeat::BeatController::m_sigBeatSnare [private] |
Definition at line 117 of file beatcontroller.h.
boost::signals2::signal<void (std::tr1::unordered_set<uint16_t>)> mybeat::BeatController::m_sigCustom [private] |
Definition at line 118 of file beatcontroller.h.
boost::signals2::signal<void ()> mybeat::BeatController::m_sigProcessingDone [private] |
Definition at line 115 of file beatcontroller.h.