mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-09-05 11:56:23 +00:00
更新一下,马上回来
This commit is contained in:
BIN
msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc
Normal file
BIN
msctspt/__pycache__/bdxOpera_CP.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
msctspt/__pycache__/funcOpera.cpython-38.pyc
Normal file
BIN
msctspt/__pycache__/funcOpera.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
msctspt/__pycache__/values.cpython-38.pyc
Normal file
BIN
msctspt/__pycache__/values.cpython-38.pyc
Normal file
Binary file not shown.
@ -99,7 +99,7 @@ class report():
|
||||
|
||||
class version:
|
||||
|
||||
libraries = ('mido','amulet','amulet-core','amulet-nbt','piano_transcription_inference','pypinyin','briefcase','toga','pyinstaller','kivy','py7zr')
|
||||
libraries = ('mido','amulet','amulet-core','amulet-nbt','piano_transcription_inference','pypinyin','briefcase','toga','pyinstaller','kivy','py7zr','websockets')
|
||||
'''当前所需库,有一些是开发用的,用户不需要安装'''
|
||||
|
||||
version = ('0.0.4.2','Beta',)
|
||||
|
@ -55,7 +55,7 @@ def formCmdBlock(direction:list,command:str,particularValue:int,impluse:int,cond
|
||||
|
||||
|
||||
|
||||
def note2bdx(filePath:str,dire:list,Notes : list,ScoreboardName:str,Instrument:str, PlayerSelect:str='',isProsess:bool=False) :
|
||||
def note2bdx(filePath:str,dire:list,Notes : list,ScoreboardName:str,Instrument:str, PlayerSelect:str='',isProsess:bool=False,height:int = 200) :
|
||||
'''使用方法同Note2Cmd
|
||||
:param 参数说明:
|
||||
filePath: 生成.bdx文件的位置
|
||||
@ -65,6 +65,7 @@ def note2bdx(filePath:str,dire:list,Notes : list,ScoreboardName:str,Instrument:s
|
||||
Instrument: 播放的乐器
|
||||
PlayerSelect: 执行的玩家选择器
|
||||
isProsess: 是否显示进度条(会很卡)
|
||||
height: 生成结构的最高高度
|
||||
:return 返回一个BdxConverter类(实际上没研究过),同时在指定位置生成.bdx文件'''
|
||||
|
||||
|
||||
@ -84,11 +85,11 @@ def note2bdx(filePath:str,dire:list,Notes : list,ScoreboardName:str,Instrument:s
|
||||
blocks = [formCmdBlock(dire,cdl.pop(0),1,1)]
|
||||
dire[1]+=1;
|
||||
for j in cdl:
|
||||
if dire[1]+i > 200:
|
||||
if dire[1]+i > height:
|
||||
dire[0]+=1
|
||||
i=0
|
||||
down = not down
|
||||
if dire[1]+i == 200 :
|
||||
if dire[1]+i == height :
|
||||
blocks.append(formCmdBlock([dire[0],dire[1]+i,dire[2]],j,5,2,False,False))
|
||||
else:
|
||||
if down:
|
||||
@ -97,7 +98,7 @@ def note2bdx(filePath:str,dire:list,Notes : list,ScoreboardName:str,Instrument:s
|
||||
blocks.append(formCmdBlock([dire[0],dire[1]+i,dire[2]],j,1,2,False,False))
|
||||
i+=1
|
||||
del i, cdl, down, cmd
|
||||
return BdxConverter(filePath,'RyounMusicreater',blocks)
|
||||
return BdxConverter(filePath,'Build by RyounMusicreater',blocks)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user