comparison layer/ScrollableMagRangeCache.cpp @ 1136:9ff838a64461 spectrogram-minor-refactor

Re-enable (little-used) normalise-visible-range option in spectrogram layer
author Chris Cannam
date Wed, 03 Aug 2016 16:16:23 +0100
parents 745a868f0abf
children c53ed1a6fcbd
comparison
equal deleted inserted replaced
1135:628cd329c241 1136:9ff838a64461
74 newRanges.insert(newRanges.begin(), 74 newRanges.insert(newRanges.begin(),
75 m_ranges.begin() + dx, m_ranges.end()); 75 m_ranges.begin() + dx, m_ranges.end());
76 m_ranges = newRanges; 76 m_ranges = newRanges;
77 } 77 }
78 78
79 //!!! cerr << "maxes now: "; 79 cerr << "maxes (" << m_ranges.size() << ") now: ";
80 // for (int i = 0; in_range_for(m_ranges, i); ++i) { 80 for (int i = 0; in_range_for(m_ranges, i); ++i) {
81 // cerr << m_ranges[i].getMax() << " "; 81 cerr << m_ranges[i].getMax() << " ";
82 // } 82 }
83 // cerr << endl; 83 cerr << endl;
84 } 84 }
85 85
86 MagnitudeRange 86 MagnitudeRange
87 ScrollableMagRangeCache::getRange(int x, int count) const 87 ScrollableMagRangeCache::getRange(int x, int count) const
88 { 88 {