#include "ofLog.h"
ofEvent<float> ofxAubioBeat::gotGlobalBeat = ofEvent<float>();
+ofEvent<int> ofxAubioBeat::gotGlobalTatum = ofEvent<int>();
ofxAubioBeat::ofxAubioBeat()
{
ofNotifyEvent(gotGlobalBeat, last_beat);
}
if (aubio_tempo_was_tatum(tempo) == 1) {
- toSendTatum = true;
+ int last_tatum = aubio_tempo_get_last_tatum(tempo);
+ ofNotifyEvent(gotTatum, last_tatum, this);
+ ofNotifyEvent(gotGlobalTatum, last_tatum);
}
}
ofEvent<float> gotBeat;
static ofEvent<float> gotGlobalBeat;
+ ofEvent<int> gotTatum;
+ static ofEvent<int> gotGlobalTatum;
void setup();
void setup(string method, int buf_s, int hop_s, int samplerate);
float bpm;
unsigned tatum_signature;
- bool toSendTatum;
private:
void blockAudioIn();