comparison 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
comparison
equal deleted inserted replaced
485:3f9fddc890e0 486:c860cab85904
331 long startFrame; 331 long startFrame;
332 int zoomLevel; 332 int zoomLevel;
333 size_t modelStart; 333 size_t modelStart;
334 size_t modelEnd; 334 size_t modelEnd;
335 }; 335 };
336
337 // Note that the getYBin... methods return the nominal bin in the
338 // un-smoothed spectrogram. This is not necessarily the same bin
339 // as is pulled from the spectrogram and drawn at the given
340 // position, if the spectrogram has oversampling smoothing. Use
341 // getSmoothedYBinRange to obtain that.
342
336 bool getXBinRange(View *v, int x, float &windowMin, float &windowMax) const; 343 bool getXBinRange(View *v, int x, float &windowMin, float &windowMax) const;
337 bool getYBinRange(View *v, int y, float &freqBinMin, float &freqBinMax) const; 344 bool getYBinRange(View *v, int y, float &freqBinMin, float &freqBinMax) const;
345 bool getSmoothedYBinRange(View *v, int y, float &freqBinMin, float &freqBinMax) const;
338 346
339 bool getYBinSourceRange(View *v, int y, float &freqMin, float &freqMax) const; 347 bool getYBinSourceRange(View *v, int y, float &freqMin, float &freqMax) const;
340 bool getAdjustedYBinSourceRange(View *v, int x, int y, 348 bool getAdjustedYBinSourceRange(View *v, int x, int y,
341 float &freqMin, float &freqMax, 349 float &freqMin, float &freqMax,
342 float &adjFreqMin, float &adjFreqMax) const; 350 float &adjFreqMin, float &adjFreqMax) const;