Mercurial > hg > precise-onset-detection
view src/PreciseOnsetLocator.h @ 8:184a7c232049 tip
changed files since updating computer
author | Venetian |
---|---|
date | Thu, 14 Aug 2014 17:53:57 +0100 |
parents | 7ec1ed0b2eb0 |
children |
line wrap: on
line source
/* * PreciseOnsetLocator.h * peakOnsetDetector * * Created by Andrew Robertson on 21/09/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef PRECISE_ONSET_LOCATOR #define PRECISE_ONSET_LOCATOR #include <vector.h> class PreciseOnsetLocator{ public: PreciseOnsetLocator(); ~PreciseOnsetLocator(); int bufferSize; vector <double> onsetSamples;//holds the audio samples when onset is found vector <double> recentBufferSamples; double getLastEnergySum(const int& startIndex, const int& vectorSize); int findExactOnset(); int findExactOnset(float* frame); int findExactOnset(double* frame); int exactOnsetIndex; void setup(const int& size); void storeSamples(double* newSamples); }; #endif