diff --git a/plugins/Eq/EqFader.h b/plugins/Eq/EqFader.h index 6f9b2661509..c588c2b9290 100644 --- a/plugins/Eq/EqFader.h +++ b/plugins/Eq/EqFader.h @@ -80,7 +80,7 @@ private slots: { const float opl = getPeak_L(); const float opr = getPeak_R(); - const float fall_off = 1.2; + const float fallOff = 1.07; if( *m_lPeak > opl ) { setPeak_L( *m_lPeak ); @@ -88,7 +88,7 @@ private slots: } else { - setPeak_L( opl/fall_off ); + setPeak_L( opl/fallOff ); } if( *m_rPeak > opr ) @@ -98,7 +98,7 @@ private slots: } else { - setPeak_R( opr/fall_off ); + setPeak_R( opr/fallOff ); } update(); } diff --git a/plugins/Eq/EqSpectrumView.cpp b/plugins/Eq/EqSpectrumView.cpp index d44e01ece3c..677c896fbb7 100644 --- a/plugins/Eq/EqSpectrumView.cpp +++ b/plugins/Eq/EqSpectrumView.cpp @@ -224,7 +224,7 @@ void EqSpectrumView::paintEvent(QPaintEvent *event) float peak; m_path.moveTo( 0, height() ); m_peakSum = 0; - float fallOff = 1.2; + const float fallOff = 1.07; for( int x = 0; x < MAX_BANDS; ++x, ++bands ) { peak = ( fh * 2.0 / 3.0 * ( 20 * ( log10( *bands / energy ) ) - LOWER_Y ) / ( - LOWER_Y ) ); diff --git a/src/gui/FxMixerView.cpp b/src/gui/FxMixerView.cpp index 8da1cb4e0a5..edeaceb54ea 100644 --- a/src/gui/FxMixerView.cpp +++ b/src/gui/FxMixerView.cpp @@ -579,7 +579,7 @@ void FxMixerView::updateFaders() { const float opl = m_fxChannelViews[i]->m_fader->getPeak_L(); const float opr = m_fxChannelViews[i]->m_fader->getPeak_R(); - const float fall_off = 1.2; + const float fallOff = 1.07; if( m->effectChannel(i)->m_peakLeft > opl ) { m_fxChannelViews[i]->m_fader->setPeak_L( m->effectChannel(i)->m_peakLeft ); @@ -587,7 +587,7 @@ void FxMixerView::updateFaders() } else { - m_fxChannelViews[i]->m_fader->setPeak_L( opl/fall_off ); + m_fxChannelViews[i]->m_fader->setPeak_L( opl/fallOff ); } if( m->effectChannel(i)->m_peakRight > opr ) @@ -597,7 +597,7 @@ void FxMixerView::updateFaders() } else { - m_fxChannelViews[i]->m_fader->setPeak_R( opr/fall_off ); + m_fxChannelViews[i]->m_fader->setPeak_R( opr/fallOff ); } } } diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index fa6958cef3d..d82d5befe3d 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -209,7 +209,7 @@ MainWindow::MainWindow() : vbox->addWidget( w ); setCentralWidget( main_widget ); - m_updateTimer.start( 1000 / 20, this ); // 20 fps + m_updateTimer.start( 1000 / 60, this ); // 60 fps if( ConfigManager::inst()->value( "ui", "enableautosave" ).toInt() ) {