mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
修复已知问题
This commit is contained in:
parent
4788d8949b
commit
eda3a957cf
4
main.py
4
main.py
@ -112,8 +112,8 @@ class midiConvert:
|
||||
ticks += msg.time
|
||||
if msg.type == 'note_on' and msg.velocity != 0:
|
||||
singleTrack.append('execute @a[scores={' + scoreboardname + '=' +
|
||||
str(round((ticks * tempo)((self.midi.ticks_per_beat * float(speed)) *
|
||||
50000))) + '}' +
|
||||
str(round((ticks * tempo)/((self.midi.ticks_per_beat * float(speed)) *
|
||||
50000))) + '}' +
|
||||
f'] ~~~ playsound {self.__Inst2SoundID(instrumentID)} '
|
||||
f'@s ~~{1 / volume - 1}~ {msg.velocity * (0.7 if msg.channel == 0 else 0.9)}'
|
||||
f' {2 ** ((msg.note - 66) / 12)}')
|
||||
|
Loading…
Reference in New Issue
Block a user