Merge branch 'main' of https://github.com/xinrin/popnhax_tools
This commit is contained in:
commit
562137a9dc
@ -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
|
||||
|
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user