Commit Graph

14 Commits

Author SHA1 Message Date
Steve Checkoway 4d2f534d45 Simplify. 2006-12-28 04:57:21 +00:00
Steve Checkoway 388c280824 Simplify. 2006-12-28 04:29:21 +00:00
Steve Checkoway 39a2c9647e Reference. 2006-12-28 04:03:52 +00:00
Steve Checkoway 23645ba30b Use references rather than pointers. 2006-12-28 02:38:56 +00:00
Glenn Maynard 28724eb156 SongChanged -> SongModified (confusing with CurrentSongChanged) 2006-11-09 04:32:23 +00:00
John Bauer 6f26ca2872 Put "CourseMode" barriers in a couple more places in AdjustSync.
Although AdjustSync would not alter anything in CourseMode, it would
sometimes announce it had.  It would be better to simply remove the
Autosync line from the options in CourseMode, but I don't know how to
do that.
2006-11-03 04:33:26 +00:00
John Bauer 592c27996d Originally, the AdjustSync class always saved to disk, even in edit mode.
In edit mode, though, AdjustSync should only save to memory, giving the
user a chance to save later.  This change adds a SongChanged message
to the MessageManager.  Making the ScreenEdit class listen to this
message allows the AdjustSync class to mark a song as dirty rather than
saving it to disk when in edit mode.

R=steve chekoway
2006-11-02 05:30:02 +00:00
John Bauer 37f9178f61 Add an "Autosync Tempo" feature. This uses a linear Least Squares
Regression to figure out a line through the user's step errors to minimize
that error.  It then uses the slope of that line to fix the tempo and the
intercept to fix the offset.  Stops are adjusted as if they were originally
calculated as a number of beats, ie the slope is also used to change
the stops.

Also fixed is a bug where the user doesn't get a chance to keep or
reject the sync changes when ESCing (ZZing) from a song.

R=glenn
2006-10-26 22:41:40 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Chris Danford 3132f177f3 show standard deviation 2006-04-06 19:54:07 +00:00
Glenn Maynard 5bcccc78b0 Sometimes, the sync changes negligibly due to rounding error when the user
puts it back where it was.  Use the same logic as GetSyncChangeTextGlobal
and GetSyncChangeTextSong; if the changes are so small that we wouldn't
even display them, don't count them as changed.  (fixes ScreenSaveSync
coming up with an empty list)
2006-03-28 07:26:37 +00:00
Chris Danford 00a08603a9 consolidate sync change strings and logic 2006-03-18 23:53:13 +00:00
Chris Danford 1fb529668c autosync screen cleanup 2006-02-06 06:50:10 +00:00
Chris Danford cce97c40b8 move autosync logic out of Player and GameState, into a separate file 2006-02-06 01:23:25 +00:00