mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
60 lines
1.4 KiB
Python
60 lines
1.4 KiB
Python
|
|
|
|
instuments = {
|
|
'note.banjo' : ['班卓琴','hay_block'],
|
|
'note.bass' : ['贝斯','planks'],
|
|
'note.bassattack' : ['低音鼓/贝斯','log'],
|
|
'note.bd' : ['底鼓','stone'], #即basedrum
|
|
'note.bell' : ['铃铛/钟琴','gold_block'],
|
|
'note.bit' : ['比特/“芯片”(方波)','emerald_block'],
|
|
'note.chime' : ['管钟','packed_ice'],
|
|
'note.cow_bell' : ['牛铃','soul_sand'],
|
|
'note.didgeridoo' : ['迪吉里杜管','pumpkin'],
|
|
'note.flute' : ['长笛','clay'],
|
|
'note.guitar' : ['吉他','wool'],
|
|
'note.harp' : ['竖琴/钢琴','concrete'], #任意其他类型的方块皆可
|
|
'note.hat' : ['击鼓沿/架子鼓','glass'],
|
|
'note.iron_xylophone' : ['“铁木琴”(颤音琴)','iron_block'],
|
|
'note.pling' : ['“扣弦”(电钢琴)','glowstone'],
|
|
'note.snare' : ['小军鼓','sand'],
|
|
'note.xylophone' : ['木琴','bone_block']
|
|
}
|
|
'''乐器对照表\n
|
|
乐器英文:[中文, 对应音符盒下方块名称]
|
|
注:方块仅取一个'''
|
|
|
|
|
|
|
|
height2note = {
|
|
0.5: 0,
|
|
0.53: 1,
|
|
0.56: 2,
|
|
0.6: 3,
|
|
0.63: 4,
|
|
0.67: 5,
|
|
0.7: 6,
|
|
0.75: 7,
|
|
0.8: 8,
|
|
0.84: 9,
|
|
0.9: 10,
|
|
0.94: 11,
|
|
1.0: 12,
|
|
|
|
1.05: 13,
|
|
1.12: 14,
|
|
1.2: 15,
|
|
1.25: 16,
|
|
1.33: 17,
|
|
1.4: 18,
|
|
1.5: 19,
|
|
1.6: 20,
|
|
1.7: 21,
|
|
1.8: 22,
|
|
1.9: 23,
|
|
2.0: 24,
|
|
}
|
|
'''音高对照表\n
|
|
MC音高:音符盒音调'''
|
|
|
|
|