Commit Graph

223 Commits

Author SHA1 Message Date
Chris Danford d2f6f8e03f experimental time signature support. Background changes and beat bars are currently the only things that are aware of time signature. Note coloring isn't aware of time signature yet. 2007-04-30 05:12:48 +00:00
Glenn Maynard 3603f40a61 cleanup 2007-03-03 21:01:41 +00:00
Chris Danford 0160e23705 style cleanup: use FOREACH_ENUM( X, x ) everywhere instead of FOREACH_X( x ) for consistency
The FOREACH_X defines are not very useful, and they were created back before FOREACH_ENUM was convenient.
2007-02-23 22:29:42 +00:00
Chris Danford 4e5219cedd SubType_INVALID -> SubType_Invalid 2007-01-15 23:47:55 +00:00
Chris Danford 46a774b5f4 SubType_invalid -> SubType_INVALID 2007-01-15 23:09:23 +00:00
Steve Checkoway 4517499f0f lroundf -> lrintf. 2007-01-03 05:05:28 +00:00
Steve Checkoway eb0b26cd82 Float to int is slow on ppc. It requires a store, a big stall, and then a load. It's even worse on a G5 if the compiler is dumb (and let's face it, I'm using gcc here...). Just use lroundf when we want an int. It will certainly be no slower. 2007-01-02 23:36:44 +00:00
Chris Danford 668158658e move Jump window and Hopo window values to be preferences 2006-12-11 12:59:32 +00:00
Chris Danford 8dad4f1ac1 show hopo-possible notes with addition coloring 2006-12-01 14:18:18 +00:00
John Bauer f39b68a8d9 Fix a typo in a comment. 2006-11-03 00:48:34 +00:00
Glenn Maynard de6ca466d2 more enum standardization 2006-10-07 04:39:48 +00:00
Glenn Maynard 2ce839e4eb Invalid 2006-10-07 04:25:28 +00:00
Glenn Maynard 3311f1992c CabinetLight_Invalid 2006-09-26 21:23:30 +00:00
Steve Checkoway 1345a2cd5f LogType -> string. Done. 2006-09-24 03:57:40 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Steve Checkoway 48a329597c Fix comment stripping. Fixes editor bug. 2006-09-12 04:28:11 +00:00
Steve Checkoway faf32603f1 Consistent user warnings. 2006-09-04 08:09:27 +00:00
Steve Checkoway 4606d68fdf Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place. 2006-09-03 05:16:09 +00:00
Steve Checkoway 5182356808 Time to get a new keyboard? 2006-08-19 20:06:31 +00:00
Steve Checkoway 03c0f2f5e4 Handle lift. 2006-08-19 19:59:56 +00:00
Steve Checkoway b39d68c8cf Initial TapNote::lift implementation. 2006-08-14 12:16:31 +00:00
Steve Checkoway 734f9760cc Remove unnecessary member. Just set iKeysoundIndex to -1 if it isn't valid. 2006-08-14 10:17:48 +00:00
Steve Checkoway 2d68d7b13e Comment. 2006-07-28 04:38:12 +00:00
Steve Checkoway e081585830 Add comment. 2006-07-28 04:37:26 +00:00
Steve Checkoway 5da3ac8f36 Avoid copying TapNote where possible and implement some of these algorithms in terms of NoteData::iterators which take constant time to move to the next element rather than GetTapNote which takes logarithmic time. 2006-07-24 04:53:24 +00:00
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +00:00
Steve Checkoway c090130108 Fix splitting composite NoteData. 2006-07-09 23:51:40 +00:00
Steve Checkoway 025997d453 Removes all tap notes except for those with PLAYER_INVALID and those matching that player. 2006-07-09 20:11:46 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Steve Checkoway 4524010d56 Apply RemoveSimultaneousNotes to each part of a composite NoteData. 2006-06-26 11:35:52 +00:00
Steve Checkoway 0279fd908f CombineCompositeNoteData(). This will not let you place a note inside a hold note that already exists. Use this when loading from a string as well. 2006-06-26 10:57:10 +00:00
Steve Checkoway 8129d943ba It's hard to maintain this information when using begin() and end() so rather than wrapping the iterators, just check each time IsComposite() is called since it doesn't happen _that_ often. Just don't call IsComposite() often. 2006-06-26 09:33:11 +00:00
Glenn Maynard 12de9309d6 defined intptr_t 2006-06-24 05:42:52 +00:00
Chris Danford 282c4d82d5 fix VC6 compile 2006-06-24 05:14:13 +00:00
Steve Checkoway 5c37cb873d Write composite NoteDatas. 2006-06-20 15:27:45 +00:00
Steve Checkoway d2a550a532 Cleanup. 2006-06-20 14:41:51 +00:00
Steve Checkoway 96e3f211b8 Split the given composite NoteData into it's constituent parts. If the given NoteData is not composite, just copy it. 2006-06-20 14:32:09 +00:00
Steve Checkoway fff087a76b Split out LoadFromSMNoteDataStringWithPlayer(). This fills out the NoteData without making any copies of sSMNoteData. Previously, this portion of the code copied the full string twice, once when splitting for measures and once when splitting for lines.
Only make a single copy of the string in LoadFromSMNoteDataString() when stripping out comments. Previously, the string was copied as many times as there were comments. Now, the whole loading can happen with a single copy of the data.
2006-06-20 13:34:28 +00:00
Steve Checkoway 5e7ac2deed Cleanup. 2006-06-20 06:48:30 +00:00
Steve Checkoway 6e6808008e Simplify. (This changes it from a cubic time operation to a quadratic. Also handles the case where a comment begins on the last line and that line isn't terminated with a newline.) 2006-06-18 00:36:58 +00:00
Glenn Maynard 45449a216e fix merge error? 2006-04-29 21:18:37 +00:00
Josh Allen 90121ba0f7 Comment, is it still needed? 2006-04-14 13:26:22 +00:00
Glenn Maynard 5f3fe4ec4f fix RemoveSimultaneousNotes never removes hold notes 2006-04-14 12:44:34 +00:00
Glenn Maynard 8bd5e174f5 NUM_NOTE_TYPES -> NUM_NoteType 2006-02-02 08:43:05 +00:00
Glenn Maynard 7ace9857af remove pPlayerState param from Attack::GetAttackBeats 2006-02-01 04:44:34 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 0b98adff15 make RadarCategory enum and Lua names consistent 2005-12-24 20:18:56 +00:00
Glenn Maynard dcd1d8f98e prefer standard find() over Find 2005-12-21 08:33:30 +00:00
Glenn Maynard ff7bbfe524 remove ShiftRows 2005-12-18 07:11:51 +00:00