comparison layer/SpectrogramLayer.cpp @ 132:5d3a483856ff

* Add Thumbwheel widget for all our zooming needs * Use QSettings to save/restore window size and position -- precursor to switching our preferences to QSettings as well -- wish I'd noticed it sooner * Only suspend writes (not reads from the underlying cache objects) from the fft caches when repainting the spectrogram -- performance should now be significantly better
author Chris Cannam
date Thu, 03 Aug 2006 15:40:11 +0000
parents eaae73b6bd28
children 9e6b3e239b9d
comparison
equal deleted inserted replaced
131:eaae73b6bd28 132:5d3a483856ff
1939 } 1939 }
1940 1940
1941 MagnitudeRange overallMag = m_viewMags[v]; 1941 MagnitudeRange overallMag = m_viewMags[v];
1942 bool overallMagChanged = false; 1942 bool overallMagChanged = false;
1943 1943
1944 fft->suspend(); 1944 fft->suspendWrites();
1945 1945
1946 for (int x = 0; x < w; ++x) { 1946 for (int x = 0; x < w; ++x) {
1947 1947
1948 for (int y = 0; y < h; ++y) { 1948 for (int y = 0; y < h; ++y) {
1949 ymag[y] = 0.0; 1949 ymag[y] = 0.0;