Venetian@7: /* Venetian@7: * PreciseBassOnsetDetector.h Venetian@7: * BasslinePrediction Venetian@7: * Venetian@7: * Created by Andrew N Robertson on 13/04/2014. Venetian@7: * Copyright 2014 QMUL. All rights reserved. Venetian@7: * Venetian@7: */ Venetian@7: Venetian@7: #ifndef PRECISE_BASS_ONSET_DETECTOR Venetian@7: #define PRECISE_BASS_ONSET_DETECTOR Venetian@7: Venetian@7: //#include "PreciseOnsetDetector.h" Venetian@7: //#include "PreciseBassOnsetDetectorOffline.h" Venetian@7: Venetian@7: //#include "PreciseOnsetDetectorOffline.h" Venetian@7: #include "PreciseOnsetVisualiser.h" Venetian@7: Venetian@7: #include "ofxWindowRegion.h" Venetian@7: #include "ofxPlotFunction.h" Venetian@7: Venetian@7: #include "PreciseBassOnsetDetectorOffline.h" Venetian@7: Venetian@7: Venetian@7: class PreciseBassOnsetDetector{ Venetian@7: public: Venetian@7: Venetian@7: PreciseBassOnsetDetector(); Venetian@7: ~PreciseBassOnsetDetector(); Venetian@7: Venetian@7: void loadNewFile(std::string filename); Venetian@7: Venetian@7: void update(); Venetian@7: void draw(); Venetian@7: Venetian@7: void keyPressed(int key); Venetian@7: void mousePressed(int x, int y, int button); Venetian@7: Venetian@7: bool getFilenameFromDialogBox(std::string* fileNameToSave); Venetian@7: Venetian@7: PreciseBassOnsetDetectorOffline pod; Venetian@7: PreciseOnsetVisualiser pov; Venetian@7: }; Venetian@7: Venetian@7: #endif