diff data/model/FFTModel.h @ 1136:e94719f941ba tony-2.0-integration

Return maximum through getNormalizedMagnitudesAt to avoid having to make more than one call
author Chris Cannam
date Tue, 20 Oct 2015 12:54:06 +0100
parents 5cbf71022679
children 444d133b5ab7
line wrap: on
line diff
--- a/data/model/FFTModel.h	Wed Oct 14 10:19:48 2015 +0100
+++ b/data/model/FFTModel.h	Tue Oct 20 12:54:06 2015 +0100
@@ -102,7 +102,7 @@
     void getValuesAt(int x, int y, float &real, float &imaginary) const;
     bool isColumnAvailable(int x) const;
     bool getMagnitudesAt(int x, float *values, int minbin = 0, int count = 0) const;
-    bool getNormalizedMagnitudesAt(int x, float *values, int minbin = 0, int count = 0) const;
+    float getNormalizedMagnitudesAt(int x, float *values, int minbin = 0, int count = 0) const; // returns maximum of unnormalized magnitudes
     bool getPhasesAt(int x, float *values, int minbin = 0, int count = 0) const;
     bool getValuesAt(int x, float *reals, float *imaginaries, int minbin = 0, int count = 0) const;