Ver código fonte

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

TIANYONG 1 semana atrás
pai
commit
94ea2126fa
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 8646ea65db6520df8fe8d5d180d5c9dcf634e2b2
+Subproject commit 2fa193767b6980a664cb05243da4be44b8682db9

+ 1 - 1
src/helpers/formateMusic.ts

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