Mercurial > hg > svgui
diff layer/SpectrumLayer.h @ 1382:2df1af7ac752 spectrogramparam
Add oversampling option to spectrum as well
author | Chris Cannam |
---|---|
date | Wed, 07 Nov 2018 11:37:51 +0000 |
parents | d79e21855aef |
children | 86f319dd6ab9 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.h Tue Nov 06 15:42:35 2018 +0000 +++ b/layer/SpectrumLayer.h Wed Nov 07 11:37:51 2018 +0000 @@ -90,9 +90,14 @@ void setWindowHopLevel(int level); int getWindowHopLevel() const { return m_windowHopLevel; } + void setOversampling(int oversampling); + int getOversampling() const; + + int getFFTSize() const { return getWindowSize() * getOversampling(); } + void setWindowType(WindowType type); WindowType getWindowType() const { return m_windowType; } - + void setShowPeaks(bool); bool getShowPeaks() const { return m_showPeaks; } @@ -114,6 +119,7 @@ int m_windowSize; WindowType m_windowType; int m_windowHopLevel; + int m_oversampling; bool m_showPeaks; mutable bool m_newFFTNeeded;