From ca978bf019e78f5e39e367c6e9d2dcb2090ad9ba Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Sat, 11 Jan 2014 16:45:56 -0500 Subject: Eliminate misleading precision in the bpm and rate displays. * Show only one decimal place for bpm and rate * Waveform stretch reacts more slowly to small changes in rate. * Vinyl control bpm updates are much more sticky. --- src/widget/wnumber.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/widget/wnumber.cpp') diff --git a/src/widget/wnumber.cpp b/src/widget/wnumber.cpp index 45c4f34c02..9e598857b0 100644 --- a/src/widget/wnumber.cpp +++ b/src/widget/wnumber.cpp @@ -53,11 +53,6 @@ void WNumber::onConnectedControlValueChanged(double v) { void WNumber::setValue(double dValue) { double v = dValue + m_dConstFactor; - int d1 = (int)floor((v-floor(v))*10.); - int d2 = (int)floor((v-floor(v))*100.)%10; - setText(QString(m_qsText).append("%1.%2%3").arg( - QString("%1").arg(static_cast(v), 3, 10), - QString("%1").arg(d1, 1, 10), - QString("%1").arg(d2, 1, 10))); + setText(QString(m_qsText).append(QString::number(v, 'f', 1))); } -- cgit v1.2.3