|
@@ -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);
|