Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 1087:6d990a24ac1b spectrogram-minor-refactor
One FFT size method, no member for it
author | Chris Cannam |
---|---|
date | Sat, 02 Jul 2016 12:56:07 +0100 |
parents | 163cb9b98104 |
children | c520f90bbf2e |
comparison
equal
deleted
inserted
replaced
1086:163cb9b98104 | 1087:6d990a24ac1b |
---|---|
250 | 250 |
251 int m_channel; | 251 int m_channel; |
252 int m_windowSize; | 252 int m_windowSize; |
253 WindowType m_windowType; | 253 WindowType m_windowType; |
254 int m_windowHopLevel; | 254 int m_windowHopLevel; |
255 int m_fftSize; // m_windowSize * oversampling level | |
256 float m_gain; | 255 float m_gain; |
257 float m_initialGain; | 256 float m_initialGain; |
258 float m_threshold; | 257 float m_threshold; |
259 float m_initialThreshold; | 258 float m_initialThreshold; |
260 int m_colourRotation; | 259 int m_colourRotation; |
337 else if (m_windowHopLevel == 1) return (m_windowSize * 3) / 4; | 336 else if (m_windowHopLevel == 1) return (m_windowSize * 3) / 4; |
338 else return m_windowSize / (1 << (m_windowHopLevel - 1)); | 337 else return m_windowSize / (1 << (m_windowHopLevel - 1)); |
339 } | 338 } |
340 | 339 |
341 int getFFTOversampling() const; | 340 int getFFTOversampling() const; |
342 int getFFTSize(const LayerGeometryProvider *v) const; | 341 int getFFTSize() const; // m_windowSize * getFFTOversampling() |
342 | |
343 FFTModel *getFFTModel(const LayerGeometryProvider *v) const; | 343 FFTModel *getFFTModel(const LayerGeometryProvider *v) const; |
344 Dense3DModelPeakCache *getPeakCache(const LayerGeometryProvider *v) const; | 344 Dense3DModelPeakCache *getPeakCache(const LayerGeometryProvider *v) const; |
345 void invalidateFFTModels(); | 345 void invalidateFFTModels(); |
346 | 346 |
347 typedef std::map<int, FFTModel *> ViewFFTMap; // key is view id | 347 typedef std::map<int, FFTModel *> ViewFFTMap; // key is view id |