Commit Graph
19 Commits
Author SHA1 Message Date
Steve Checkoway 29e6e796ba Simplify and speed up loading (very very slightly). It would be fastest to add all BPM/stop segments to the array and then sort it once (n log n). It was sorting after every insertion (n^2 log n). This now does simple insertion sort so it's n^2 in the worst case but since upper_bound does a binary search, if the BPM segments are in order this will take n log n in the best case.
That said, you'll notice no difference unless you had thousands of BPM changes in a file.
2006-07-20 01:56:17 +00:00
Glenn Maynard 788ad134f1 This broke beat alignment, and after that was fixed, other questions
came up (like how to align beat effects correctly).  Revert this and
fix assist tick differently.

Add GetBeatAndBPSFromElapsedTimeNoOffset, GetBeatFromElapsedTimeNoOffset,
GetElapsedTimeFromBeatNoOffset.  Use them to ignore GlobalOffsetSeconds.
2006-03-29 11:12:20 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 01e8e57ad1 add TimingData::GetStopAtRow 2005-12-19 00:07:34 +00:00
Glenn Maynard 37d82efe3f remove ShiftRows 2005-12-18 08:02:51 +00:00
Glenn Maynard a0031e8db2 TimingData::ShiftRows violated an important invariant of TimingData: any
given beat can have no more than one StopSegment or BPMSegment--more
than one just doesn't make sense.  Split out TimingData::InsertRows,
TimingData::DeleteRows; delete rows in between before shifting data
up.
2005-12-18 07:55:01 +00:00
Glenn Maynard 0161a467ea TimingData is note rows internally. Don't convert from note rows to
beats, and then back to note rows.
2005-12-18 07:29:31 +00:00
Chris Danford d1fdc21864 fix songs with stops and manually set BPM not disqualifying with C* 2005-06-10 20:29:42 +00:00
Glenn Maynard aa5aff643f fix const
fix signed warning
2005-05-20 00:28:41 +00:00
Chris Danford d67d60e178 sync controls cleanup:
move sync display/saving out of complicated ScreenGameplay
  show sync UI in editor playback as well as gameplay
  revert sync from in-memory backup, not from disk
  move more functions into debug overlay
2005-05-19 23:29:39 +00:00
Glenn Maynard 52731adc29 NoteField::m_fBeginMarker, m_fEndMarker -> m_iBeginMarker, m_iEndMarker
go back to storing BPM as a float, until I'm sure it won't cause precision
problems
2005-01-23 23:17:12 +00:00
Glenn Maynard 3634c07656 Represent TimingData values (except for "seconds") in fixed-point.
Maybe we should stop calling note indexes "rows" and "indexes", and just
call them "beats"; if they're stored as an integer, they're in fixed-point.  Things
like "note rows per second" are a lot less intuitive than just calling them "beats
per second".
2005-01-23 21:55:01 +00:00
Glenn Maynard c9a0e11e3d add TimingData::SetStopAtBeat 2005-01-08 13:58:34 +00:00
Glenn Maynard 422b1defb7 TimingData::MultiplyBPMInBeatRange 2004-11-08 22:24:18 +00:00
Glenn Maynard 549cd7c83f license updates 2004-05-31 21:35:31 +00:00
Chris Danford df72631f6c add "disqualify" graphic to options screen for options that make a song easier 2004-03-08 07:49:01 +00:00
Matt Denham 324e07d383 Implemented a quick pair of move/scale functions for TimingData
fixed NoteDataUtil::ScaleRegion (and dealt with conflicts - whee)
fixed assorted editor inconsistencies and bugs
2004-02-26 05:38:46 +00:00
Glenn Maynard b535efe7b9 add m_sFile 2004-01-17 23:19:15 +00:00
Glenn Maynard c4b9fb2f03 Song is too cluttered. Move timing stuff to TimingData. 2003-12-18 04:42:54 +00:00