Mercurial > hg > svgui
comparison widgets/AudioDial.cpp @ 252:8d89f8869cfb
* don't store fft values scaled by fftsize/2; that's a special requirement
for the spectrogram, and other applications will not expect it -- make the
spectrogram do that scaling itself
* add a higher-resolution memory cache (still polar, though) as an alternative
to the 16-bit compact cache
* don't use the memory cache if we want rectangular coords (unless the disc
cache is totally infeasible) as conversion slows it down anyway
* avoid redundant rectangular -> polar -> rectangular conversion when storing
values in a rectangular-mode disc cache
author | Chris Cannam |
---|---|
date | Fri, 01 Jun 2007 13:56:35 +0000 |
parents | e6d0b097d102 |
children | cd2492c5fe45 |
comparison
equal
deleted
inserted
replaced
251:948a3b05798b | 252:8d89f8869cfb |
---|---|
374 | 374 |
375 | 375 |
376 float AudioDial::mappedValue() const | 376 float AudioDial::mappedValue() const |
377 { | 377 { |
378 if (m_rangeMapper) { | 378 if (m_rangeMapper) { |
379 std::cerr << "AudioDial::mappedValue(): value = " << value() << ", mappedValue = " << m_mappedValue << std::endl; | 379 // std::cerr << "AudioDial::mappedValue(): value = " << value() << ", mappedValue = " << m_mappedValue << std::endl; |
380 return m_mappedValue; | 380 return m_mappedValue; |
381 } | 381 } |
382 return value(); | 382 return value(); |
383 } | 383 } |
384 | 384 |