Commit Graph

120 Commits

Author SHA1 Message Date
Jason Felds bf5c3791cc This can be const: no members changed. 2011-07-26 14:13:10 -04:00
Jason Felds 480cda836e Allow for checking if the TimingData is empty.
AKA, no segments in use.

Again, this is mainly for the editor.

As for why a lowercase empty? Blame vectors.
2011-07-26 14:10:51 -04:00
Jason Felds 4f7bddd8cc Seriously, how do we remove sm-ssc.app?
I can't kill this thing.
2011-07-26 13:56:23 -04:00
Jason Felds 75b3a67e2a Add a function to copy TimingData over a range.
This is primarily for the editor. Still, it may
have other uses.
2011-07-26 13:41:41 -04:00
Thai Pangsakulyanont 8bad512433 Fix performance issue: remove the slow assertion code.
GetDisplayedBeat and GetDisplayedSpeedPercent are called so many times in one frame
so they need to be as fast as possible.
2011-07-27 00:29:22 +07:00
Jason Felds 679b81705b Not needed. 2011-07-26 12:57:48 -04:00
Jason Felds 5c34929600 Fix timing segment scaling.
When in doubt, use the direct approach.
2011-07-26 11:35:58 -04:00
Jason Felds d96a300a50 Remove out of bounds errors.
......I REALLY need a vacation now.
2011-07-21 17:25:02 -04:00
Jason Felds 59686a46b0 Fix out of bounds error. 2011-07-20 15:29:24 -04:00
Alberto Ramos 3b475db699 why 2011-07-19 23:42:32 -06:00
Alberto Ramos 0c1a33cbe3 things
ksfs are still broken
2011-07-19 18:35:29 -06:00
Jason Felds 0944948cad Fix Stops and Delays on the timing bar. 2011-07-17 23:58:22 -04:00
Jason Felds 48226f2027 No longer store #NOTES in cache.
Use the #STEPFILENAME tag to access the files
as appropriate.

To the betting pool fans: file cache version is 192.
2011-07-17 16:06:40 -04:00
Thai Pangsakulyanont e6be564be8 [timing] make sure the segments are sorted 2011-07-17 13:03:21 +07:00
Thai Pangsakulyanont de3916297e it runs, but scrolls stop working. 2011-07-17 12:30:09 +07:00
Jason Felds 4e58239255 [timing] TimingData.* should be good.
Now to try to adjust the JSON files.
2011-07-15 00:54:11 -04:00
Jason Felds 4e7c3282ec [timing] Caveat #2 fixed.
Caveat #1 won't be until we make Delays their own
segment...and somehow don't screw up the timing.
2011-07-15 00:14:13 -04:00
Jason Felds 01dacd9746 [timing] More abstraction.
This commit has 2 caveats.

1) Stops and Delays are treated the same in the editor right now.
2) TimingSegments.cpp: XToString should not require NUM_TimingSegmentTypes.

Ideas?
2011-07-14 23:54:06 -04:00
Jason Felds 6f5ab98dec [timing] More respect of pointers.
Again going to trust virtual functions to do the right thing.
2011-07-14 23:15:48 -04:00
Jason Felds c9a6bbbafe [timing] More progress.
Soon going to enter the real big functions.
2011-07-14 22:19:32 -04:00
Jason Felds 6255a84be4 [timing] More abstractions of common functions. 2011-07-14 21:51:09 -04:00
Jason Felds 48a8113336 [timing] Set*AtRow error free. 2011-07-14 21:25:17 -04:00
Jason Felds 4f490c3d3b [timing] Some more stuff.
Need dinner though.
2011-07-14 19:52:37 -04:00
Jason Felds 2c85e902b4 [timing] Better be sure we clean up afterwards.
If this is going a bit too far, feel free
to leave a little bit more mess.
2011-07-14 19:29:52 -04:00
Jason Felds 199af25f31 Get inserts working via passing TimingSegments.
Unsure if this is the right way:
code review may be needed.
2011-07-14 19:01:12 -04:00
Jason Felds 312498be94 [timing] Down to about 130 errors.
Need a break, maybe some help.
2011-07-14 15:22:32 -04:00
Jason Felds da291c2097 Temp branch [timing] for conversion process.
May need some help with Notes*Json.
2011-07-14 12:31:42 -04:00
Jason Felds 4f91b5ddbe Remove unused attribute. 2011-07-14 11:09:49 -04:00
Jason Felds 08d5f8f722 Add Miss Combo support in #COMBOS tag. 2011-07-09 02:28:15 -04:00
Jason Felds b115a875de Fix the other mMod corner case. 2011-07-03 13:57:22 -04:00
Thai Pangsakulyanont 9a1a824f22 let SpeedSegment scale itself.
also fixes the bug where the segments outside of the scaling region are scaled too.
2011-07-01 22:40:57 +07:00
Jason Felds 0919debf33 Preserve speed segment length time on beats. 2011-06-27 14:24:55 -04:00
Jason Felds 11ea4e62da Fix Stop/Delay conflicts.
We REALLY need to separate these two.
2011-06-26 22:56:39 -04:00
Jason Felds 1d5f9830a3 Get Next and Previous other segments.
...we need to find a way to template these if possible.
2011-06-26 22:24:22 -04:00
Thai Pangsakulyanont 68f95ce056 Refactor TimingData::ScaleRegion(), fixes 297. 2011-06-26 13:43:30 +07:00
Jason Felds 49ac1c362d Add many TimingData bindings. See changelog. 2011-06-15 16:56:01 -04:00
Jason Felds 2ab5a4ddb8 Mostly 64 - 32 float warning fixes. 2011-06-12 03:37:10 -04:00
Jason Felds 11dfc1dd8b Deprecate Lua's HasNegativeBPMs().
Use HasWarps() instead.

Hmm...is there a way to mark the XML with a deprecated tag?
2011-06-09 18:16:23 -04:00
Thai Pangsakulyanont 687affa1e5 merge.
I seem to get an EXC_BAD_ACCESS error about libpng on app starting, so I don't know if the merge succeeded at all :<
2011-06-04 19:18:55 +07:00
Thai Pangsakulyanont 49042c4878 try to improve performance with scroll segments:
- optimize GetDisplayedBeat (seems to be a bottleneck here).
- make sure that fFirstBeatToDraw <= fBeat <= fLastBeatToDraw in IS_ON_SCREEN.
2011-06-04 19:02:45 +07:00
Jason Felds 90ab6dfca8 Add hack to stop random crashes on editor leave.
I'm sure there is a better way, but this works right now.
2011-06-01 14:32:59 -04:00
Jason Felds b36f172462 Added the HasScrollChanges lua binding. 2011-06-01 10:12:10 -04:00
Jason Felds e0f36181be More accurate for CMod checking. 2011-06-01 10:08:40 -04:00
Jason Felds df6a00b53e Stops (and Delays) now templated.
This is all of them at this present time.

At some point in the future, we should make
DelaySegments separate from StopSegments.
2011-06-01 09:50:34 -04:00
Jason Felds 50e93045cc Scroll Segments Satisfied.
Just the Stops and Delays...in one segment.
Yeah, maybe those should be split up at some point.
2011-06-01 08:44:09 -04:00
Jason Felds f9eb6fb387 Speed Segments Satisfied. 2011-05-31 15:27:27 -04:00
Jason Felds b1eab10594 Time Signatures, the other big one. :D 2011-05-31 14:27:55 -04:00
Jason Felds 642ec5ac81 Minor cleanup before I dive back into segments. 2011-05-31 14:04:35 -04:00
Thai Pangsakulyanont 1d2dd19ab1 Yeah, BPM segments, big one :D 2011-05-31 23:41:39 +07:00
Jason Felds 714427f154 ComboSegments brought in.
Five to go I believe.
2011-05-31 11:45:25 -04:00