Ver código fonte

feat: 合并休止小节兼容从0开始的xml

TIANYONG 2 semanas atrás
pai
commit
77aecbe5fa
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      osmd-extended
  2. 1 1
      src/helpers/formateMusic.ts

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit cefcde4b54cc28228e500ac2dc73194f24e92864
+Subproject commit 8646ea65db6520df8fe8d5d180d5c9dcf634e2b2

+ 1 - 1
src/helpers/formateMusic.ts

@@ -864,7 +864,7 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
 
 	let preNoteEndTime = 0; // 上一个音符的结束时间
 
-	let preNoteMeasureNumber = 0; // 上一个小节的number值
+	let preNoteMeasureNumber: any = null; // 上一个小节的number值
 
 	let currentRealTempo: any = {}; // 当前小节的速度与拍号信息