1
0
mirror of synced 2024-11-30 23:57:16 +01:00

converters.py: Fix how pos_abs is computed

This commit is contained in:
Viv 2024-01-31 09:46:31 -05:00
parent 8e691a0176
commit 3d416e180e

View File

@ -319,7 +319,8 @@ def convert_tja_to_fumen(tja: TJACourse) -> FumenCourse:
# we can initialize a note and handle general note metadata. # we can initialize a note and handle general note metadata.
note = FumenNote() note = FumenNote()
note.pos = note_pos note.pos = note_pos
note.pos_abs = measure_fumen.offset_start + note_pos note.pos_abs = (measure_fumen.offset_start + note_pos +
(4 * 60_000 / measure_fumen.bpm))
note.note_type = note_tja.value note.note_type = note_tja.value
note.score_init = tja.score_init note.score_init = tja.score_init
note.score_diff = tja.score_diff note.score_diff = tja.score_diff