Commit Graph
8 Commits
Author SHA1 Message Date
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 3132f177f3 show standard deviation 2006-04-06 19:54:07 +00:00
Chris Danford 4a998771eb change calibrate sync to 8th notes 2006-03-22 17:40:19 +00:00
Chris Danford c9842df053 require one sample for every note on SGSyncMachine. There's no reason why the player should miss now that there's a 4 beat lead-in. 2006-03-22 05:07:21 +00:00
Chris Danford 00a08603a9 consolidate sync change strings and logic 2006-03-18 23:53:13 +00:00
Chris Danford de4b978da3 lower sample count because of 4 beats lead-in 2006-03-16 21:56:03 +00:00
Chris Danford e691b97d31 reset autosync between each loop in SGSyncMachine 2006-03-09 06:39:24 +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