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