Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 42:1bdf285c4eac
* Add "Export Audio File" option
* Make note layer align in frequency with any spectrogram layer on the same
view (if it's set to frequency mode)
* Start to implement mouse editing for ranges of points by dragging the
selection
* First scrappy attempt at a vertical scale for time value layer
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2006 17:34:41 +0000 |
parents | f2c416cbdaa9 |
children | 78515b1e29eb |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Fri Feb 24 17:26:11 2006 +0000 +++ b/layer/SpectrogramLayer.cpp Mon Feb 27 17:34:41 2006 +0000 @@ -2031,6 +2031,24 @@ #endif } +float +SpectrogramLayer::getYForFrequency(float frequency) const +{ + return m_view->getYForFrequency(frequency, + getEffectiveMinFrequency(), + getEffectiveMaxFrequency(), + m_frequencyScale == LogFrequencyScale); +} + +float +SpectrogramLayer::getFrequencyForY(int y) const +{ + return m_view->getFrequencyForY(y, + getEffectiveMinFrequency(), + getEffectiveMaxFrequency(), + m_frequencyScale == LogFrequencyScale); +} + int SpectrogramLayer::getCompletion() const {