comparison layer/ScrollableMagRangeCache.h @ 1122:94370157b265 spectrogram-minor-refactor

Fixes and debug output for mag range calculations
author Chris Cannam
date Fri, 22 Jul 2016 13:56:24 +0100
parents 65cdaf8d6b50
children c53ed1a6fcbd
comparison
equal deleted inserted replaced
1121:d930ff725f64 1122:94370157b265
111 } 111 }
112 112
113 /** 113 /**
114 * Get the magnitude range for a range of columns. 114 * Get the magnitude range for a range of columns.
115 */ 115 */
116 MagnitudeRange getRange(int x, int count) const { 116 MagnitudeRange getRange(int x, int count) const;
117 MagnitudeRange r;
118 for (int i = 0; i < count; ++i) {
119 r.sample(m_ranges.at(x + i));
120 }
121 return r;
122 }
123 117
124 /** 118 /**
125 * Set the new start frame for the cache, according to the 119 * Set the new start frame for the cache, according to the
126 * geometry of the supplied LayerGeometryProvider, if possible 120 * geometry of the supplied LayerGeometryProvider, if possible
127 * also moving along any existing valid data within the cache so 121 * also moving along any existing valid data within the cache so