Mercurial > hg > svgui
diff layer/SpectrumLayer.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 | 6d113226bb4c |
line wrap: on
line diff
--- a/layer/SpectrumLayer.h Fri Jun 08 15:19:50 2007 +0000 +++ b/layer/SpectrumLayer.h Mon Jun 11 12:14:52 2007 +0000 @@ -38,6 +38,10 @@ void setModel(DenseTimeValueModel *model); virtual const Model *getModel() const { return m_originModel; } + virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, + std::vector<QRect> &extents) const; + virtual void paintCrosshairs(View *, QPainter &, QPoint) const; + virtual QString getFeatureDescription(View *v, QPoint &) const; virtual PropertyList getProperties() const; @@ -90,6 +94,12 @@ void setupFFT(); + virtual void getBiasCurve(BiasCurve &) const; + BiasCurve m_biasCurve; + + float getFrequencyForX(float x, float w) const; + float getXForFrequency(float freq, float w) const; + size_t getWindowIncrement() const { if (m_windowHopLevel == 0) return m_windowSize; else if (m_windowHopLevel == 1) return (m_windowSize * 3) / 4;