Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 1379:b6cca362bbf4 spectrogramparam
Experimental oversampling param
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 13:36:04 +0000 |
parents | d79e21855aef |
children | a18e78b9c78b |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Tue Nov 06 13:35:47 2018 +0000 +++ b/layer/SpectrogramLayer.h Tue Nov 06 13:36:04 2018 +0000 @@ -111,6 +111,9 @@ void setWindowHopLevel(int level); int getWindowHopLevel() const; + void setOversampling(int oversampling); + int getOversampling() const; + void setWindowType(WindowType type); WindowType getWindowType() const; @@ -246,6 +249,7 @@ int m_windowSize; WindowType m_windowType; int m_windowHopLevel; + int m_oversampling; float m_gain; float m_initialGain; float m_threshold; @@ -300,8 +304,7 @@ else return m_windowSize / (1 << (m_windowHopLevel - 1)); } - int getFFTOversampling() const; - int getFFTSize() const; // m_windowSize * getFFTOversampling() + int getFFTSize() const; // m_windowSize * getOversampling() FFTModel *m_fftModel; FFTModel *getFFTModel() const { return m_fftModel; }