mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-02-07 19:36:46 +08:00
改太快了,出问题了,修复了
This commit is contained in:
parent
517c7db112
commit
5929ae417d
@ -1283,7 +1283,7 @@ class midiConvert:
|
|||||||
|
|
||||||
_bytes += key[y][int(yforward)]
|
_bytes += key[y][int(yforward)]
|
||||||
|
|
||||||
with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "w+") as f:
|
with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "ab+") as f:
|
||||||
f.write(brotli.compress(_bytes + b"XE"))
|
f.write(brotli.compress(_bytes + b"XE"))
|
||||||
|
|
||||||
return (True, _bytes, (nowx, maxheight, _sideLength))
|
return (True, _bytes, (nowx, maxheight, _sideLength))
|
||||||
@ -1395,7 +1395,7 @@ class midiConvert:
|
|||||||
|
|
||||||
_bytes += key[y][int(yforward)]
|
_bytes += key[y][int(yforward)]
|
||||||
|
|
||||||
with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "w+") as f:
|
with open(os.path.abspath(os.path.join(self.outputPath,f"{self.midFileName}.bdx")), "ab+") as f:
|
||||||
f.write(brotli.compress(_bytes + b"XE"))
|
f.write(brotli.compress(_bytes + b"XE"))
|
||||||
|
|
||||||
return (True, _bytes, (nowx, maxheight, _sideLength))
|
return (True, _bytes, (nowx, maxheight, _sideLength))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user