From fd0b1465d05066c020b005b842ae9d633d7f893b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 30 Oct 2015 12:33:35 +0100 Subject: [PATCH] example_aubioDemo/: indent --- example_aubioDemo/src/ofApp.cpp | 12 +++---- example_aubioDemo/src/ofApp.h | 74 ++++++++++++++++++++--------------------- 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/example_aubioDemo/src/ofApp.cpp b/example_aubioDemo/src/ofApp.cpp index 2c85866..ad44e12 100644 --- a/example_aubioDemo/src/ofApp.cpp +++ b/example_aubioDemo/src/ofApp.cpp @@ -74,17 +74,17 @@ void ofApp::update(){ void ofApp::draw(){ // update beat info if (beat.received()) { - ofSetHexColor(0x00FF00); - ofRect(90,150,50,50); + ofSetHexColor(0x00FF00); + ofRect(90,150,50,50); } // update onset info if (onset.received()) { - ofSetHexColor(0xFF0000); - ofRect(250 + 90,150,50,50); - gotOnset = 1; + ofSetHexColor(0xFF0000); + ofRect(250 + 90,150,50,50); + gotOnset = 1; } else { - gotOnset = 0; + gotOnset = 0; } onsetNovelty = onset.novelty; onsetThresholdedNovelty = onset.thresholdedNovelty; diff --git a/example_aubioDemo/src/ofApp.h b/example_aubioDemo/src/ofApp.h index 13c8434..6c5fd37 100644 --- a/example_aubioDemo/src/ofApp.h +++ b/example_aubioDemo/src/ofApp.h @@ -6,41 +6,41 @@ class ofApp : public ofBaseApp{ - public: - void setup(); - void exit(); - - void update(); - void draw(); - - void keyPressed(int key); - void keyReleased(int key); - void mouseMoved(int x, int y ); - void mouseDragged(int x, int y, int button); - void mousePressed(int x, int y, int button); - void mouseReleased(int x, int y, int button); - void windowResized(int w, int h); - void dragEvent(ofDragInfo dragInfo); - void gotMessage(ofMessage msg); - - void audioIn(float * input, int bufferSize, int nChannels); - void audioOut(); - - private: - ofxAubioOnset onset; - ofxAubioPitch pitch; - ofxAubioBeat beat; - - ofxPanel pitchGui; - ofxFloatSlider midiPitch; - ofxFloatSlider pitchConfidence; - - ofxPanel beatGui; - ofxFloatSlider bpm; - - ofxPanel onsetGui; - ofxFloatSlider gotOnset; - ofxFloatSlider onsetThreshold; - ofxFloatSlider onsetNovelty; - ofxFloatSlider onsetThresholdedNovelty; + public: + void setup(); + void exit(); + + void update(); + void draw(); + + void keyPressed(int key); + void keyReleased(int key); + void mouseMoved(int x, int y ); + void mouseDragged(int x, int y, int button); + void mousePressed(int x, int y, int button); + void mouseReleased(int x, int y, int button); + void windowResized(int w, int h); + void dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + void audioIn(float * input, int bufferSize, int nChannels); + void audioOut(); + + private: + ofxAubioOnset onset; + ofxAubioPitch pitch; + ofxAubioBeat beat; + + ofxPanel pitchGui; + ofxFloatSlider midiPitch; + ofxFloatSlider pitchConfidence; + + ofxPanel beatGui; + ofxFloatSlider bpm; + + ofxPanel onsetGui; + ofxFloatSlider gotOnset; + ofxFloatSlider onsetThreshold; + ofxFloatSlider onsetNovelty; + ofxFloatSlider onsetThresholdedNovelty; }; -- 2.11.0