Commit Graph

33 Commits

Author SHA1 Message Date
Chris Danford 1b749e26ac style cleanup 2006-06-28 18:45:06 +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
Glenn Maynard 002e1b99b2 unused 2006-03-29 08:49:57 +00:00
Glenn Maynard ee9c292b09 Implement GlobalOffsetSeconds in GameState::UpdateSongPosition,
not TimingData.  TimingData is a simple data structure, and shouldn't
be affected by hardware tweaks.  This is also easier to bypass in cases
we don't want GlobalOffsetSeconds.

Don't adjust assist tick by GlobalOffsetSeconds.
2006-03-28 09:28:55 +00:00
Glenn Maynard 01e8e57ad1 add TimingData::GetStopAtRow 2005-12-19 00:07:34 +00:00
Glenn Maynard 502374771b fix InsertRows(0,n) breaks an invariant: the first BPM segment must always start at 0 2005-12-18 08:09:27 +00:00
Glenn Maynard 37d82efe3f remove ShiftRows 2005-12-18 08:02:51 +00:00
Glenn Maynard 1cbcbc6b1e fix, comment 2005-12-18 07:58:53 +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
Glenn Maynard fee5e3ff33 cleanup 2005-12-18 07:28:48 +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
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
Chris Danford afb2c2efb4 replace large, arbitrary numbers with limit constants 2005-03-29 19:10:42 +00:00
Chris Danford bb6592a4e7 use float.h and limit.h constants instead of arbitrary large numbers 2005-03-25 20:01:51 +00:00
Glenn Maynard 537f3a86b1 editor BPM changing fixes: conditional was backwards, and epsilon
must be smaller since we're in BPS
2005-02-10 04:59:03 +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 1524e0a38f fix TimingData::SetBPMAtBeat adding redundant BPM segments 2005-01-08 13:57:48 +00:00
Glenn Maynard 422b1defb7 TimingData::MultiplyBPMInBeatRange 2004-11-08 22:24:18 +00:00
Glenn Maynard 9cfb7c6d6c this is redundant - use TimingData::SetBPMAtBeat 2004-11-01 08:31:10 +00:00
Glenn Maynard 080c78c0dc Handle adding a duplicate BPM segment in a well-defined way: overwrite
the old one, don't put duplicate segments in the BPM list.
2004-10-26 19:18:03 +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
Glenn Maynard a60bde8547 simplify 2004-02-26 06:46:36 +00:00
Glenn Maynard 84f2b06713 style cleanup 2004-02-26 06:00:52 +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 113c7b43ec fix timing when a freeze lies before or on the first BPM segment (Black Cat) 2004-02-24 23:40:28 +00:00
Glenn Maynard 27171288d4 cleanup, simplify 2004-01-28 21:28:43 +00:00
Chris Danford 9c34c2ae9b add comment 2004-01-18 20:15:14 +00:00
Glenn Maynard 588836df07 generic beat sync 2003-12-18 08:53:38 +00:00
Glenn Maynard c4b9fb2f03 Song is too cluttered. Move timing stuff to TimingData. 2003-12-18 04:42:54 +00:00