mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-01-31 15:31:55 +08:00
修复进度条显示错误
This commit is contained in:
parent
a6d7022f87
commit
0a640267ff
@ -481,15 +481,15 @@ class midiConvert:
|
||||
|
||||
nowstr = pgsstyle
|
||||
if ids[r'%%s'] == True:
|
||||
nowstr = nowstr.replace(r'%%s', str(i + 1))
|
||||
nowstr = nowstr.replace(r'%%s', str(allticks[i] + 1))
|
||||
if ids[r'%%t'] == True:
|
||||
nowstr = nowstr.replace(r'%%t', self.__score2time(i + 1))
|
||||
nowstr = nowstr.replace(r'%%t', self.__score2time(allticks[i] + 1))
|
||||
if ids[r'%%%'] == True:
|
||||
nowstr = nowstr.replace(
|
||||
r'%%%', str(int((i + 1) / allticks[-1] * 10000) / 100) + '%'
|
||||
r'%%%', str(int((allticks[i] + 1) / allticks[-1] * 10000) / 100) + '%'
|
||||
)
|
||||
|
||||
countof_s = int((i + 1) / allticks[-1] * pgblength)
|
||||
countof_s = int((allticks[i] + 1) / allticks[-1] * pgblength)
|
||||
|
||||
titlenow = __replace(
|
||||
nowstr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user