diff options
Diffstat (limited to 'libs/vamp-plugins/OnsetDetect.cpp')
-rw-r--r-- | libs/vamp-plugins/OnsetDetect.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/vamp-plugins/OnsetDetect.cpp b/libs/vamp-plugins/OnsetDetect.cpp index 2a34791951..c2b6d68dbc 100644 --- a/libs/vamp-plugins/OnsetDetect.cpp +++ b/libs/vamp-plugins/OnsetDetect.cpp @@ -17,9 +17,9 @@ #endif #include "OnsetDetect.h" -#include "dsp/onsets/DetectionFunction.h" -#include "dsp/onsets/PeakPicking.h" -#include "dsp/tempotracking/TempoTrack.h" +#include <dsp/onsets/DetectionFunction.h> +#include <dsp/onsets/PeakPicking.h> +#include <dsp/tempotracking/TempoTrack.h> using std::string; using std::vector; @@ -49,7 +49,7 @@ public: vector<double> dfOutput; Vamp::RealTime origin; }; - + OnsetDetector::OnsetDetector(float inputSampleRate) : Vamp::Plugin(inputSampleRate), @@ -162,7 +162,7 @@ OnsetDetector::getParameter(std::string name) const } else if (name == "sensitivity") { return m_sensitivity; } else if (name == "whiten") { - return m_whiten ? 1.0 : 0.0; + return m_whiten ? 1.0 : 0.0; } return 0.0; } @@ -265,7 +265,7 @@ OnsetDetector::initialise(size_t channels, size_t stepSize, size_t blockSize) dfConfig.adaptiveWhitening = m_whiten; dfConfig.whiteningRelaxCoeff = -1; dfConfig.whiteningFloor = -1; - + m_d = new OnsetDetectorData(dfConfig); return true; } @@ -477,7 +477,7 @@ OnsetDetector::getRemainingFeatures() } for (unsigned int i = 0; i < ppParams.length; ++i) { - + Feature feature; // feature.hasTimestamp = false; feature.hasTimestamp = true; |