|
@@ -31,6 +31,10 @@ const hideSpeedWords: string[] = ["中速"];
|
|
* @returns 节拍器的时间
|
|
* @returns 节拍器的时间
|
|
*/
|
|
*/
|
|
export const getFixTime = (speed: number) => {
|
|
export const getFixTime = (speed: number) => {
|
|
|
|
+ // 如果是midi,不计算mp3节拍器时长
|
|
|
|
+ if (state.isAppPlay) {
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
const duration: any = getDuration(state.osmd as unknown as OpenSheetMusicDisplay);
|
|
const duration: any = getDuration(state.osmd as unknown as OpenSheetMusicDisplay);
|
|
let numerator = duration.numerator || 0;
|
|
let numerator = duration.numerator || 0;
|
|
let denominator = duration.denominator || 4;
|
|
let denominator = duration.denominator || 4;
|