Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 486:c860cab85904
* Finer locking in fft caches; fix displayed bin ranges in spectrogram
author | Chris Cannam |
---|---|
date | Thu, 05 Feb 2009 12:05:28 +0000 |
parents | a926fca1f280 |
children | 5cd6f0d3f42d |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Wed Feb 04 20:39:11 2009 +0000 +++ b/layer/SpectrogramLayer.h Thu Feb 05 12:05:28 2009 +0000 @@ -333,8 +333,16 @@ size_t modelStart; size_t modelEnd; }; + + // Note that the getYBin... methods return the nominal bin in the + // un-smoothed spectrogram. This is not necessarily the same bin + // as is pulled from the spectrogram and drawn at the given + // position, if the spectrogram has oversampling smoothing. Use + // getSmoothedYBinRange to obtain that. + bool getXBinRange(View *v, int x, float &windowMin, float &windowMax) const; bool getYBinRange(View *v, int y, float &freqBinMin, float &freqBinMax) const; + bool getSmoothedYBinRange(View *v, int y, float &freqBinMin, float &freqBinMax) const; bool getYBinSourceRange(View *v, int y, float &freqMin, float &freqMax) const; bool getAdjustedYBinSourceRange(View *v, int x, int y,