diff --git a/pms2bemani/pms2bemani/bmx2bmson.py b/pms2bemani/pms2bemani/bmx2bmson.py index b37dac9..16d4f3f 100644 --- a/pms2bemani/pms2bemani/bmx2bmson.py +++ b/pms2bemani/pms2bemani/bmx2bmson.py @@ -231,7 +231,7 @@ class bms2bmson: "mc" : 0 }) break - if (ch > 50 and ch < 70): + if (ch > 50 and ch <= 70): pln = i while pln + 1 < len(self.NotePre): pln = pln + 1 diff --git a/pms2bemani/pms2bemani/pms2bemani.py b/pms2bemani/pms2bemani/pms2bemani.py index 91b1c31..1044424 100644 --- a/pms2bemani/pms2bemani/pms2bemani.py +++ b/pms2bemani/pms2bemani/pms2bemani.py @@ -398,9 +398,7 @@ def write_chart(events, output_filename, new_format): elif event['name'] == "key": outfile.write(int.to_bytes(event['key'], 1, 'little')) - - note_flag = 4 if new_format and event['length'] != 0 else 0 - outfile.write(int.to_bytes(note_flag, 1, 'little')) + outfile.write(int.to_bytes(0, 1, 'little')) # highlight zone elif event['name'] in ["sample", "sample2"]: outfile.write(int.to_bytes(event['value'] | (event['key'] << 12), 2, 'little'))