converters.py
: Fix how pos_abs
is computed
This commit is contained in:
parent
8e691a0176
commit
3d416e180e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user