readFumen()
: Comment out useless offset
value
This isn't actually used anywhere, and the calculation is often wrong.
This commit is contained in:
parent
cc885a0270
commit
89011c79db
@ -336,12 +336,12 @@ def readFumen(fumenFile, byteOrder=None, debug=False):
|
||||
measure = {}
|
||||
measure["bpm"] = measureStruct[0]
|
||||
measure["fumenOffset"] = measureStruct[1]
|
||||
if measureNumber == 0:
|
||||
measure["offset"] = measure["fumenOffset"] + 240000 / measure["bpm"]
|
||||
else:
|
||||
prev = song['measures'][measureNumber - 1]
|
||||
measure["offset"] = ((prev["offset"] + measure["fumenOffset"] + 240000) /
|
||||
(measure["bpm"] - prev["fumenOffset"] - 240000 / prev["bpm"]))
|
||||
# if measureNumber == 0:
|
||||
# measure["offset"] = measure["fumenOffset"] + 240000 / measure["bpm"]
|
||||
# else:
|
||||
# prev = song['measures'][measureNumber - 1]
|
||||
# measure["offset"] = ((prev["offset"] + measure["fumenOffset"] + 240000) /
|
||||
# (measure["bpm"] - prev["fumenOffset"] - 240000 / prev["bpm"]))
|
||||
measure["gogo"] = getBool(measureStruct[2])
|
||||
measure["hidden"] = getBool(measureStruct[3])
|
||||
measure["padding1"] = measureStruct[4]
|
||||
|
Loading…
Reference in New Issue
Block a user