diff --git a/tja2fumen/parsers.py b/tja2fumen/parsers.py index 8642da7..89d0e47 100644 --- a/tja2fumen/parsers.py +++ b/tja2fumen/parsers.py @@ -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]