1
0
mirror of synced 2024-12-18 13:45:54 +01:00
Commit Graph

234 Commits

Author SHA1 Message Date
Viv
fc1b0d1bbc Start adding docstrings and fixing comments 2023-07-25 21:50:12 -04:00
Viv
09a293e59f types.py: Simplify __repr__ using inheritance 2023-07-25 19:20:10 -04:00
Viv
ec72398abe Simplify #SECTION/#BRANCHSTART logic
Previous code was unnecessarily convoluted.
2023-07-25 19:11:28 -04:00
Viv
f088e95e02 converters.py: Move computation into MeasureFumen class 2023-07-25 18:53:02 -04:00
Viv
79cca3d75e README.md: Try adding a Features section 2023-07-24 22:58:22 -04:00
Viv
7baa5ea859 README.md: Improve table spacing for mobile 2023-07-24 22:47:46 -04:00
Viv
d33562fef7 README.md: Update tja2bin crash commands 2023-07-24 17:33:24 -04:00
Viv
86f394e8ca README.md: Update sim-specific wording 2023-07-24 17:28:04 -04:00
Viv
5ca4f080d3 README.md: Clarify #LEVELHOLD status 2023-07-24 17:22:14 -04:00
Viv
a09bfb87d4 Add test for 2P commands 2023-07-24 16:55:52 -04:00
Viv
6eb3676343 Add double Kusudama test 2023-07-24 16:46:21 -04:00
Viv
276bd0b70c Add semi-support for sim-specific notes 2023-07-24 16:28:49 -04:00
Viv
f1cd73ebb9 README.md: Add table for file formats 2023-07-24 16:07:38 -04:00
Viv
45535d6fb1 README.md: Reformat tables using PyCharm 2023-07-24 16:00:04 -04:00
Viv
a4c9fb2b18 Add support for A/B notes (hands) 2023-07-24 15:57:58 -04:00
Viv
4f269630a5 Fix note.type -> note.note_type 2023-07-24 15:50:42 -04:00
Viv
9f71a801ce
Update README.md 2023-07-24 09:21:23 -04:00
Viv
e848fc9499
README.md: Make emoji platform-agnostic 2023-07-24 01:02:53 +00:00
Viv
e799e35629
test_conversion.py: Fix Pylint warnings 2023-07-24 01:00:15 +00:00
Viv
e6cf84758c
.vscode: Add files generated by Codespaces 2023-07-24 00:43:05 +00:00
Viv
cee3819efa testing/: Add test case for missing balloons 2023-07-23 12:15:05 -04:00
Viv
a979b4104a testing/: Add test case for missing balloons 2023-07-23 11:24:18 -04:00
Viv
9501058b38 converters.py: Catch errors when missing balloons 2023-07-23 11:23:35 -04:00
Viv
ca9b0d0332 testing/: Move convert() into conftest.py 2023-07-23 10:20:28 -04:00
Viv
9a24b90618 Add new test for checking dummy TJA errors 2023-07-23 10:11:42 -04:00
Viv
907ea43f16
Update README.md 2023-07-23 09:16:11 -04:00
Viv
3ae4bcc310
README.md: Play with <br> 2023-07-23 09:15:41 -04:00
Viv
ee7a3ae3cf
README.md: Remove ? from legend 2023-07-23 09:14:37 -04:00
Viv
b965633a73
README.md: Split tables into two 2023-07-23 09:11:10 -04:00
Viv
54d0ce402b
README.md: Rearrange table and fix command typos 2023-07-23 08:42:55 -04:00
Viv
eaa824cacf
README.md: Fix issues 2023-07-23 08:31:09 -04:00
Viv
2ca5406cdc
README.md: Shorten tagline 2023-07-22 21:05:26 -04:00
Viv
f4d5a52e5c
README.md: Style Note: paragraph 2023-07-22 21:03:18 -04:00
Viv
e1d562f5ef
README.md: Restructure sections, add badges, add command support
Fixes #43.
2023-07-22 20:57:51 -04:00
Viv
5e313a3549
README.md: Fix logo colors 2023-07-22 18:23:57 -04:00
Viv
9c31f41066
README.md: Add newline 2023-07-22 10:44:26 -04:00
Viv
56df81b59b
README.md: Add logo, divider, smaller headers 2023-07-22 10:41:14 -04:00
Viv
60a9e249cd parsers.py: Rename read_fumen function 2023-07-21 23:18:09 -04:00
Viv
9d0d8b9314 parsers.py: Rename parsed_tja and lines 2023-07-21 23:17:05 -04:00
Viv
e756f5c07f parsers.py: Rename parse_course_measures function 2023-07-21 23:15:47 -04:00
Viv
26fbcdff81 parsers.py: Rename get_course_data function 2023-07-21 23:14:24 -04:00
Viv
e318d0a8a3 Fold utils.py into parsers.py and writers.py 2023-07-21 23:13:27 -04:00
Viv
356bb7b036
Update codebase to adhere to flake8 and add linting check (#51) 2023-07-21 22:57:18 -04:00
Viv
e1cd6f385d converters.py: Use branch_points to compute p conditions
This is a much more clear/accurate way to compute the branchInfo values.
2023-07-20 23:03:23 -04:00
Viv
dbf222e460 converters.py: Simplify branching header byte checks 2023-07-20 23:03:14 -04:00
Viv
000125eb10
Ensure that header branch bytes are correctly set for all branching cases (#50)
Some backstory:

- In [#45](https://github.com/vivaria/tja2fumen/pull/45), I reworked the
header parsing code to make sure every header value was correctly
identified.
- In [#46](https://github.com/vivaria/tja2fumen/pull/46), I changed how
the "branch point" header bytes were set by checking if a song contained
only drumroll branching conditions. This fixed drumroll-only songs like
BATTLE NO. 1, Shoutoku Taiko, etc.

However, I missed a corner case in #46 -- songs with `#BRANCHSTART
p,0,0` should still be considered "drumroll only". As well, I neglected
to consider the "percentage only" songs. So, I fixed the header bytes
there, too.

Then, to confirm that my changes do in fact produce correct headers, I
enabled the check for `branch_points` for (most) of the songs in the
test suite. The tests pass. :)
2023-07-20 21:58:58 -04:00
Viv
5ce313ca83 Rename advanced -> professional 2023-07-19 23:45:59 -04:00
Viv
1bf83d09dc
Simplify how HP values are stored and parsed (#49)
- Merge 42 LUTs into 1 LUT
- Greatly simplify HP methods

Fixes #48.
2023-07-19 23:43:56 -04:00
Viv
3704d0a627 converters.py: Fix bug with HP byte 2023-07-19 22:59:07 -04:00
Viv
1777100d3d test_conversion: Add HP bytes to test suite
Will need to comment out the remaining header bytes and test them for the existing songs.
2023-07-19 22:59:07 -04:00