# HG changeset patch # User Andrew N Robertson # Date 1348272691 -3600 # Node ID 5a94f002e5ef6456c7d0e13f3b75e9cbde620756 # Parent 3dcbd77efc94f756a5de608e643e2cede627f485 some changes diff -r 3dcbd77efc94 -r 5a94f002e5ef src/PeakProcessor.h --- 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 +#include "math.h" class PeakProcessor{ public: diff -r 3dcbd77efc94 -r 5a94f002e5ef src/testApp.cpp --- 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