Mercurial > hg > tony
diff src/MainWindow.cpp @ 357:d511868c1ffe
smaller step size for ffwd and rewind
author | matthiasm |
---|---|
date | Wed, 18 Jun 2014 10:44:05 +0100 |
parents | 0b08d860081b |
children | 0f72797ecdef |
line wrap: on
line diff
--- a/src/MainWindow.cpp Wed Jun 18 10:13:12 2014 +0100 +++ b/src/MainWindow.cpp Wed Jun 18 10:44:05 2014 +0100 @@ -3296,9 +3296,9 @@ size_t sr = getMainModel()->getSampleRate(); // The step is supposed to scale and be as wide as a step of - // m_defaultFfwdRwdStep seconds at zoom level 512 and sr = 44100 + // m_defaultFfwdRwdStep seconds at zoom level 720 and sr = 44100 size_t framesPerPixel = m_viewManager->getGlobalZoom(); - size_t defaultZoom = (512 * 44100) / sr; + size_t defaultZoom = (720 * 44100) / sr; float scaler = (framesPerPixel * 1.0f) / defaultZoom; @@ -3336,9 +3336,9 @@ size_t sr = getMainModel()->getSampleRate(); // The step is supposed to scale and be as wide as a step of - // m_defaultFfwdRwdStep seconds at zoom level 512 and sr = 44100 + // m_defaultFfwdRwdStep seconds at zoom level 720 and sr = 44100 size_t framesPerPixel = m_viewManager->getGlobalZoom(); - size_t defaultZoom = (512 * 44100) / sr; + size_t defaultZoom = (720 * 44100) / sr; float scaler = (framesPerPixel * 1.0f) / defaultZoom; frame = RealTime::realTime2Frame