converters.py
: Fix drumroll duration bug
The duration calculation wasn't taking into account the starting position of the drumroll, so the drumrolls ended up with a duration that was way too long. Fixes #1.
This commit is contained in:
parent
84056aef27
commit
1953ffbc23
@ -153,7 +153,7 @@ def convertTJAToFumen(fumen, tja):
|
||||
note_pos = measureDurationBase * (data['pos'] - measureTJA['pos_start']) / measureLength
|
||||
# The duration of the current drumroll is the position of the drumroll-end note.
|
||||
if data['value'] == "EndDRB":
|
||||
currentDrumroll['duration'] += note_pos
|
||||
currentDrumroll['duration'] += (note_pos - currentDrumroll['pos'])
|
||||
# 1182, 1385, 1588, 2469, 1568, 752, 1568
|
||||
currentDrumroll['duration'] = float(int(currentDrumroll['duration']))
|
||||
currentDrumroll = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user