Mercurial > hg > svcore
comparison base/View.h @ 33:51e158b505da
* Rearrange spectrogram cacheing so that gain, normalization, instantaneous
frequency calculations etc can be done from the cached data (increasing the
size of the cache, but also the usability).
author | Chris Cannam |
---|---|
date | Thu, 23 Feb 2006 18:01:31 +0000 |
parents | 4afaf0df4d51 |
children | aaf73f7309f2 |
comparison
equal
deleted
inserted
replaced
32:5e28cbb431d0 | 33:51e158b505da |
---|---|
92 | 92 |
93 /** | 93 /** |
94 * Return the closest frame to the given pixel x-coordinate. | 94 * Return the closest frame to the given pixel x-coordinate. |
95 */ | 95 */ |
96 long getFrameForX(int x) const; | 96 long getFrameForX(int x) const; |
97 | |
98 /** | |
99 * Return the pixel y-coordinate corresponding to a given | |
100 * frequency, if the frequency range is as specified. This does | |
101 * not imply any policy about layer frequency ranges, but it might | |
102 * be useful for layers to match theirs up if desired. | |
103 * | |
104 * Not thread-safe in logarithmic mode. Call only from GUI thread. | |
105 */ | |
106 float getYForFrequency(float frequency, float minFreq, float maxFreq, | |
107 bool logarithmic) const; | |
108 | |
109 /** | |
110 * Return the closest frequency to the given pixel y-coordinate, | |
111 * if the frequency range is as specified. | |
112 * | |
113 * Not thread-safe in logarithmic mode. Call only from GUI thread. | |
114 */ | |
115 float getFrequencyForY(int y, float minFreq, float maxFreq, | |
116 bool logarithmic) const; | |
97 | 117 |
98 /** | 118 /** |
99 * Return the zoom level, i.e. the number of frames per pixel | 119 * Return the zoom level, i.e. the number of frames per pixel |
100 */ | 120 */ |
101 int getZoomLevel() const; | 121 int getZoomLevel() const; |