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 = {}
|
||||||
measure["bpm"] = measureStruct[0]
|
measure["bpm"] = measureStruct[0]
|
||||||
measure["fumenOffset"] = measureStruct[1]
|
measure["fumenOffset"] = measureStruct[1]
|
||||||
if measureNumber == 0:
|
# if measureNumber == 0:
|
||||||
measure["offset"] = measure["fumenOffset"] + 240000 / measure["bpm"]
|
# measure["offset"] = measure["fumenOffset"] + 240000 / measure["bpm"]
|
||||||
else:
|
# else:
|
||||||
prev = song['measures'][measureNumber - 1]
|
# prev = song['measures'][measureNumber - 1]
|
||||||
measure["offset"] = ((prev["offset"] + measure["fumenOffset"] + 240000) /
|
# measure["offset"] = ((prev["offset"] + measure["fumenOffset"] + 240000) /
|
||||||
(measure["bpm"] - prev["fumenOffset"] - 240000 / prev["bpm"]))
|
# (measure["bpm"] - prev["fumenOffset"] - 240000 / prev["bpm"]))
|
||||||
measure["gogo"] = getBool(measureStruct[2])
|
measure["gogo"] = getBool(measureStruct[2])
|
||||||
measure["hidden"] = getBool(measureStruct[3])
|
measure["hidden"] = getBool(measureStruct[3])
|
||||||
measure["padding1"] = measureStruct[4]
|
measure["padding1"] = measureStruct[4]
|
||||||
|
Loading…
Reference in New Issue
Block a user