diff layer/SliceLayer.h @ 254:a2ae3d93c645

* bit of work on harmonic cursor in spectrum
author Chris Cannam
date Mon, 11 Jun 2007 12:14:52 +0000
parents 28c8e8e3c537
children a3a54632cd4c
line wrap: on
line diff
--- a/layer/SliceLayer.h	Fri Jun 08 15:19:50 2007 +0000
+++ b/layer/SliceLayer.h	Mon Jun 11 12:14:52 2007 +0000
@@ -113,6 +113,12 @@
                                           int &minbin, int &maxbin,
                                           int &range) const;
 
+    // This curve may, of course, be flat -- the spectrum uses it for
+    // normalizing the fft results by the fft size (with 1/(fftsize/2)
+    // in each bin).
+    typedef std::vector<float> BiasCurve;
+    virtual void getBiasCurve(BiasCurve &) const { return; }
+
     const DenseThreeDimensionalModel *m_sliceableModel;
     QColor                            m_colour;
     int                               m_colourMap;
@@ -121,7 +127,6 @@
     PlotStyle                         m_plotStyle;
     BinScale                          m_binScale;
     bool                              m_normalize;
-    bool                              m_bias;
     float                             m_gain;
     mutable std::vector<int>          m_scalePoints;
     mutable std::map<View *, int>     m_xorigins;