small formatting changes
This commit is contained in:
+7
-11
@@ -59,7 +59,6 @@ void AdjustSync::ResetOriginalSyncData()
|
|||||||
|
|
||||||
if( GAMESTATE->m_pCurSong )
|
if( GAMESTATE->m_pCurSong )
|
||||||
{
|
{
|
||||||
|
|
||||||
s_vpTimingDataOriginal.push_back(GAMESTATE->m_pCurSong->m_SongTiming);
|
s_vpTimingDataOriginal.push_back(GAMESTATE->m_pCurSong->m_SongTiming);
|
||||||
const vector<Steps *>& vpSteps = GAMESTATE->m_pCurSong->GetAllSteps();
|
const vector<Steps *>& vpSteps = GAMESTATE->m_pCurSong->GetAllSteps();
|
||||||
FOREACH( Steps*, const_cast<vector<Steps *>&>(vpSteps), s )
|
FOREACH( Steps*, const_cast<vector<Steps *>&>(vpSteps), s )
|
||||||
@@ -250,12 +249,11 @@ void AdjustSync::AutosyncTempo()
|
|||||||
|
|
||||||
if( s_fAverageError < ERROR_TOO_HIGH )
|
if( s_fAverageError < ERROR_TOO_HIGH )
|
||||||
{
|
{
|
||||||
// Here we filter out any steps that are too far off.
|
/* Here we filter out any steps that are too far off.
|
||||||
//
|
* If it turns out that we want to be even more selective, we can keep
|
||||||
// If it turns out that we want to be even more selective, we can
|
* only a fraction of the data, such as the 80% with the lowest error.
|
||||||
// keep only a fraction of the data, such as the 80% with the lowest
|
* However, throwing away the ones with high error should be enough
|
||||||
// error. However, throwing away the ones with high error should
|
* in most cases. */
|
||||||
// be enough in most cases.
|
|
||||||
float fFilteredError = 0;
|
float fFilteredError = 0;
|
||||||
s_iStepsFiltered = s_vAutosyncTempoData.size();
|
s_iStepsFiltered = s_vAutosyncTempoData.size();
|
||||||
FilterHighErrorPoints( s_vAutosyncTempoData, fSlope, fIntercept, ERROR_TOO_HIGH );
|
FilterHighErrorPoints( s_vAutosyncTempoData, fSlope, fIntercept, ERROR_TOO_HIGH );
|
||||||
@@ -303,7 +301,6 @@ void AdjustSync::AutosyncTempo()
|
|||||||
s_vAutosyncTempoData.clear();
|
s_vAutosyncTempoData.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static LocalizedString EARLIER ("AdjustSync","earlier");
|
static LocalizedString EARLIER ("AdjustSync","earlier");
|
||||||
static LocalizedString LATER ("AdjustSync","later");
|
static LocalizedString LATER ("AdjustSync","later");
|
||||||
static LocalizedString GLOBAL_OFFSET_FROM ( "AdjustSync", "Global Offset from %+.3f to %+.3f (notes %s)" );
|
static LocalizedString GLOBAL_OFFSET_FROM ( "AdjustSync", "Global Offset from %+.3f to %+.3f (notes %s)" );
|
||||||
@@ -330,9 +327,8 @@ void AdjustSync::GetSyncChangeTextGlobal( vector<RString> &vsAddTo )
|
|||||||
{
|
{
|
||||||
vsAddTo.push_back( ssprintf(
|
vsAddTo.push_back( ssprintf(
|
||||||
GLOBAL_OFFSET_FROM.GetValue(),
|
GLOBAL_OFFSET_FROM.GetValue(),
|
||||||
fOld,
|
fOld, fNew,
|
||||||
fNew,
|
(fDelta > 0 ? EARLIER:LATER).GetValue().c_str() ));
|
||||||
(fDelta > 0 ? EARLIER:LATER).GetValue().c_str() ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user