3
0
mirror of synced 2024-11-27 17:00:55 +01:00
This commit is contained in:
Shinrin Ouja Moriking 2023-08-04 22:12:25 -06:00
commit 562137a9dc
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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'))