1
0
mirror of synced 2025-01-24 15:12:19 +01:00

Fix linting issues

This commit is contained in:
Viv 2023-07-26 10:17:28 -04:00
parent 7aead6f8ef
commit 740ccbcd31
3 changed files with 4 additions and 4 deletions

View File

@ -225,7 +225,7 @@ def convert_tja_to_fumen(tja):
branch_points_measure = 0
for idx_d, data in enumerate(measure_tja.data):
# Compute the ms position of the note
pos_ratio = ((data.pos - measure_tja.pos_start) /
pos_ratio = ((data.pos - measure_tja.pos_start) /
(measure_tja.pos_end - measure_tja.pos_start))
note_pos = (measure_fumen.duration * pos_ratio)

View File

@ -31,7 +31,7 @@ def parse_tja(fname_tja):
def split_tja_lines_into_courses(lines):
"""
Parse TJA metadata in order to divide TJA lines into separate courses.
In TJA files, metadata lines are denoted by a colon (':'). These lines
provide general info about the song (BPM, TITLE, OFFSET, etc.). They also
define properties for each course in the song (difficulty, level, etc.).

View File

@ -104,7 +104,7 @@ class FumenMeasure(DefaultObject):
self.branches = {b: FumenBranch() for b in BRANCH_NAMES}
self.padding1 = padding1
self.padding2 = padding2
def set_duration(self, time_sig, measure_length, subdivisions):
"""Compute the millisecond duration of the measure."""
# First, we compute the duration for a full 4/4 measure.
@ -139,7 +139,7 @@ class FumenMeasure(DefaultObject):
# Compute the end offset by adding the duration to the start offset
self.offset_end = self.offset_start + self.duration
def set_branch_info(self, branch_condition, branch_points_total,
current_branch, first_branch_condition, has_section):
"""Compute the values that represent branching/diverge conditions."""