From 61d9cdb98c9d17689879e37d67fcbd70f28f14f3 Mon Sep 17 00:00:00 2001 From: CrazyRedMachine Date: Wed, 26 Jul 2023 21:55:33 +0200 Subject: [PATCH] fix long notes being set as 4th highlight zone --- pms2bemani/pms2bemani/pms2bemani.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pms2bemani/pms2bemani/pms2bemani.py b/pms2bemani/pms2bemani/pms2bemani.py index 40b9e0d..45c8936 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'))