1
0
mirror of synced 2024-11-27 22:40:49 +01:00
Convert TJA charts into fumen (.bin) files
Go to file
Viv 35ee48200f converters.py: Only subtract drumroll pos for single-measure drumroll
Commit 1953ffbc23 fixes one issue but introduced another:

 - Subtracting the drumrolls original position only makes sense if the drumroll starts and ends in the same measure.
 - If the drumroll spans multiple measures, though, then the original position is irrelevant, since we want to add the duration from the start of the next measure (i.e. pos=0).

 So, this commit makes sure to only subtract the position if the drumroll isn't a multi-measure drumroll.

 ((NB: This could probably be handled without using a new 'multimeasure' key, but I'm going to wait until the class refactor to tackle this.))

 Fixes #16.
2023-06-03 14:57:11 -04:00
tja2fumen converters.py: Only subtract drumroll pos for single-measure drumroll 2023-06-03 14:57:11 -04:00
.gitignore Add .gitignore file 2023-06-03 10:03:32 -04:00
README.md README.md: Stop using README as issue tracker 2023-06-03 11:07:27 -04:00

tja2fumen

This repo a new attempt to write a tja2fumen chart converter to replace/complement the existing tja2bin.exe converter.

Goals

  • Fix desyncronization issues due to BPMCHANGE commands. (See: https://github.com/Fluto/TakoTako/issues/16)
  • Provide open source code, as opposed to distributing only a closed-source binary.
  • Provide a highly-documented reference for parsing both the TJA and Fumen file formats.
  • Stick to "pure Python", i.e. no external dependencies if possible.
  • Provide support for Windows/Linux/macOS via PyInstaller or something similar.

Usage

The converter is in a messy/experimental state, and is not yet fit for use due to lack of support for important TJA commands.

Attribution

  • The fumen-parsing code in this project is based off of a modified copy of the readFumen() function from the fumen2osu.py found in @KatieFrogs' fumen-tools project.
  • The TJA-parsing code in this project is a Python translation of the parseTJA.js file from @WHMHammer's tja-tools.

Note

: To be explicily clear, neither @KatieFrogs nor @WHMHammer have endorsed this project, are affiliated with this project, or have made any direct contributions to this project. I have just modified their existing work.