Browse Source

fix: 播放循环关键字@转换成sengo

TIANYONG 4 months ago
parent
commit
4ff546c1da
2 changed files with 4 additions and 3 deletions
  1. 1 1
      osmd-extended
  2. 3 2
      src/view/music-score/index.tsx

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 0eb177f216cead288330588bc281a2d60aa0bcfc
+Subproject commit dd68ffab2f3f6e194b3886981036f05dcd1de4ca

+ 3 - 2
src/view/music-score/index.tsx

@@ -1,5 +1,5 @@
 import { computed, defineComponent, onMounted, reactive, ref, onUnmounted } from "vue";
-import { formatXML, onlyVisible } from "../../helpers/formateMusic";
+import { formatXML, onlyVisible, getCustomInfo } from "../../helpers/formateMusic";
 // // @ts-ignore
 import { OpenSheetMusicDisplay } from "/osmd-extended/src";
 import state, { EnumMusicRenderType, IPlatform } from "/src/state";
@@ -77,7 +77,8 @@ export default defineComponent({
 				downloadXmlStr.value = await fetch(state.xmlUrl).then((response) => response.text())
 			}
 			const xmlStr = downloadXmlStr.value;
-			const xml = formatXML(xmlStr);
+			const parseXmlInfo = getCustomInfo(xmlStr);
+			const xml = formatXML(parseXmlInfo.parsedXML);			
 			musicData.score = state.isCombineRender ? xml : onlyVisible(xml, state.partIndex);
 			if (state.gradualTimes) {
 				state.gradual = getGradualLengthByXml(xml);