Mercurial > hg > precise-onset-detection
changeset 1:5a94f002e5ef
some changes
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 22 Sep 2012 01:11:31 +0100 |
parents | 3dcbd77efc94 |
children | 7ec1ed0b2eb0 |
files | src/PeakProcessor.h src/testApp.cpp |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/PeakProcessor.h Fri Sep 21 16:35:17 2012 +0100 +++ b/src/PeakProcessor.h Sat Sep 22 01:11:31 2012 +0100 @@ -11,6 +11,7 @@ #define PEAK_PROCESSOR #include <vector.h> +#include "math.h" class PeakProcessor{ public:
--- a/src/testApp.cpp Fri Sep 21 16:35:17 2012 +0100 +++ b/src/testApp.cpp Sat Sep 22 01:11:31 2012 +0100 @@ -243,7 +243,7 @@ //when we find a peak, we get the precise location of it if (peakFound && !holdOn){ - exactOnsetIndex = precisionLocator.findExactOnset(&frame[0]); + exactOnsetIndex = precisionLocator.findExactOnset(&frame[0]);//divide by 512.0 or bufferSize to get [0,1] value } //need to store these continually to help in location process