Commit Graph
13170 Commits
Author SHA1 Message Date
Glenn Maynard 774ae6fa5b fix delete in the editor (BeatToNoteRow was wrong for negative numbers) 2005-01-23 19:10:44 +00:00
Glenn Maynard e02431168d implement NoteDataUtil::LoadOverlapped without 4s 2005-01-23 18:52:15 +00:00
Glenn Maynard 64714a0566 implement NoteDataUtil::LoadTransformedSlidingWindow (not
NoteDataUtil::LoadOverlapped) without 4s.  Slight change of behavior:
if a hold note overlaps the spot where we want to shift the offset, instead
of leaving the offset where it is for another full four measures, we'll try
to change it again at the next measure change.  This reduces the cases
where hold notes can prevent the offset from changing for long periods.
2005-01-23 18:21:30 +00:00
Glenn Maynard 5da9c848d6 make NoteDataUtil::LoadTransformedLights work 2005-01-23 17:58:32 +00:00
Glenn Maynard 18e32dbda4 don't lose HoldNoteResult when converting to/from 2sAnd3s 2005-01-23 17:17:24 +00:00
Glenn Maynard 4ad39097ef whoops 2005-01-23 06:32:38 +00:00
Glenn Maynard 403eccc879 m_CabinetLightsNoteData without 4s 2005-01-23 06:31:41 +00:00
Glenn Maynard 090d4bdbf2 Fix NoteDataUtil::Backwards. I'm not sure why I spent the time fixing this--
what's the point?  Are people making dance steps to Satanic messages or
something?
2005-01-23 05:56:25 +00:00
Glenn Maynard 1d84c21f5e implement NoteDataUtil::Wide without 4s 2005-01-23 05:39:07 +00:00
Glenn Maynard 7cf3351851 implement NoteDataUtil::ClearLeft and NoteDataUtil::ClearRight without 4s 2005-01-23 05:31:55 +00:00
Glenn Maynard 7b781d4534 fix NoteDataUtil::SwapSides 2005-01-23 05:20:55 +00:00
Glenn Maynard f82894ec47 implement SuperShuffleTaps without 4s 2005-01-23 05:16:09 +00:00
Glenn Maynard f55f7e0a08 NoteData::LoadTransformed fix 2005-01-23 05:15:18 +00:00
Glenn Maynard 49d1922912 implement NoteDataUtil::ShiftRight and NoteDataUtil::ShiftLeft without 4s 2005-01-23 04:59:10 +00:00
Glenn Maynard 60a0ce8eb0 implement NoteData::ClearRange and NoteData::CopyRange without 4s 2005-01-23 04:57:43 +00:00
Glenn Maynard 8fd33832cd implement NoteDataUtil::InsertIntelligentTaps without 4s 2005-01-23 03:49:12 +00:00
Glenn Maynard f954aa2019 NoteData::IsHoldNoteAtBeat fix 2005-01-23 03:48:22 +00:00
Glenn Maynard 1520875656 log processes that we lose focus to, to aid debugging of "stepmania loses
focus" bug reports
2005-01-23 01:22:14 +00:00
Glenn Maynard 59d54004f5 add GetProcessFileName 2005-01-23 01:16:40 +00:00
Glenn Maynard edc2c6c300 fix some more cases of iterating over every row 2005-01-22 20:41:50 +00:00
Glenn Maynard 14bc4ae9f6 reduce use of 4s 2005-01-22 20:22:12 +00:00
Glenn Maynard 1ccb50ac55 include cleanup (not much of a win) 2005-01-22 19:36:39 +00:00
Glenn Maynard a769bc7c41 cleanup 2005-01-22 19:25:05 +00:00
Glenn Maynard cd9b66220a use MAX_NOTE_ROW, fixes 2005-01-22 19:18:42 +00:00
Glenn Maynard 4fbcbdf77c oops; MAX_NOTE_ROW was in beats 2005-01-22 19:18:02 +00:00
Glenn Maynard 9735755e00 Add MAX_NOTE_ROW, indicating the maximum row that we can represent.
We can actually go much higher; I set this to 1<<30 instead of 1<<31 so
we don't overflow when eg. adding one beat or one measure in some
algorithms.

The advantage of this over "999999" is it won't break if ROWS_PER_BEAT
is changed to a large value.

Also, since this value will typically be much larger than any actual row, it'll
quickly show up any algorithms that aren't iterating properly.

An advantage over older code using 999999 is that we don't have to
manually clamp the value to a reasonable range; FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE,
etc. don't care.

An advantage of this over using -1 as a sentinel is that we don't have to
carefully check and fill in the value in every function using it.
2005-01-22 18:51:51 +00:00
Glenn Maynard 22f8eb1214 simplify 2005-01-22 18:37:50 +00:00
Glenn Maynard 3d1b62dd53 warnings 2005-01-22 18:36:34 +00:00
Glenn Maynard 4970e024f3 NoteDataWithScoring has no members; turn it into a namespace 2005-01-22 18:22:38 +00:00
Glenn Maynard 48bce52780 header cleanup 2005-01-22 18:21:06 +00:00
Glenn Maynard 3b608a20ff header cleanup 2005-01-22 17:59:56 +00:00
Glenn Maynard 24f8de5cec more use of beat indexes instead of floating point
It actually looks like almost all of NoteDataUtil can be done naturally
in fixed-point: instead of passing around floating point, converting it to
fixed point for NoteData indexing, and adding floating-point beat fractions,
just pass around fixed point everywhere, and convert beat fractions to
fixed-point (which probably happens at compile-time)
If TimingData, etc. does the same thing, things will be simpler ...
2005-01-22 17:51:46 +00:00
Glenn Maynard 77d58c0d63 "Beat rows" are really just a fixed-point representation of beats. Prefer
using them in general over beats: it's more precise (we can tell exactly
how it'll round, and we can compare them without ugly error-margin hacks),
and it's what we need to use them with NoteData.
2005-01-22 17:34:10 +00:00
Glenn Maynard 36c8a0b61a fix InsertIntelligentTaps track selection 2005-01-22 17:21:40 +00:00
Glenn Maynard 765d6019f7 cleanups 2005-01-22 16:12:31 +00:00
Chris Danford 07a26bafc4 remove unused 2005-01-22 09:01:00 +00:00
Chris Danford cfb6ef953e cleanup 2005-01-22 09:00:31 +00:00
Charles Lohr 288f34a5bd Oops, wrong screen 2005-01-22 05:53:14 +00:00
Glenn Maynard ab06bc76d0 err ... 2005-01-22 05:41:03 +00:00
Charles Lohr 0d7787b9e7 Fix: ReportStyle was not working properly 2005-01-22 05:34:02 +00:00
Charles Lohr e3b09fd0b8 Change: Metrics for new ScreenNetSelectMusic 2005-01-22 05:32:55 +00:00
Charles Lohr 3ce4a13410 Change: Way cool new ScreenNetSelect Music
Fix: Reporting Style didn't work right.
2005-01-22 05:31:35 +00:00
Glenn Maynard 8e564b0def Avoid checking for bHoldNoteBeginsOnThisBeat if the note skin doesn't
really need it.
2005-01-22 05:00:33 +00:00
Steve Checkoway 97ddc053d1 sigh, every time 2005-01-22 04:50:25 +00:00
Steve Checkoway 5a62dfefbb Update. 2005-01-22 04:45:51 +00:00
Steve Checkoway 2dec84b23f Fix compile on OS X. 2005-01-22 04:44:33 +00:00
Steve Checkoway 00e6c619b3 Fix compile on OS X. This might break *nix compile unless CRYPTOPP_UNIX_AVAILABLE is defined. 2005-01-22 04:44:10 +00:00
Steve Checkoway 5bc0f4c99b Fix warning. 2005-01-22 04:41:59 +00:00
Glenn Maynard dfe7ec00ae fix assert 2005-01-22 03:52:23 +00:00
Glenn Maynard 1d3613f161 for real this time :) 2005-01-22 03:39:39 +00:00