merge tatum in ledotron
authorPaul Brossier <piem@piem.org>
Tue, 19 Jan 2016 20:14:20 +0000 (21:14 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 19 Jan 2016 20:14:20 +0000 (21:14 +0100)
1  2 
example_aubioDemo/src/ofApp.cpp
example_aubioDemo/src/ofApp.h

@@@ -189,7 -186,8 +197,13 @@@ void ofApp::beatEvent(float & time) 
      gotBeat = true;
  }
  
+ //----
+ void ofApp::tatumEvent(int & t) {
+     //ofLog() << "got tatum at " << time << " samples";
+     gotTatum = true;
+ }
++
 +//---
 +void ofApp::onsetClassEvent(int & t) {
 +    //ofLog() << "got onset class event at " << t << " ";
 +}
@@@ -28,7 -28,7 +28,8 @@@ class ofApp : public ofBaseApp
  
          void onsetEvent(float & time);
          void beatEvent(float & time);
+         void tatumEvent(int & t);
 +        void onsetClassEvent(int & t);
  
      private:
          ofxAubioOnset onset;