Browse Source

feat: 多轨渲染添加DYcombinePartIndexs参数

TIANYONG 2 weeks ago
parent
commit
fec97d5f97
2 changed files with 6 additions and 1 deletions
  1. 1 1
      osmd-extended
  2. 5 0
      src/view/music-score/index.tsx

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 68cf6a4b685686cba19c003369b8a01bb19a6d98
+Subproject commit 665271caca8c4f556b1204461606435385acb7c9

+ 5 - 0
src/view/music-score/index.tsx

@@ -169,6 +169,11 @@ export default defineComponent({
 			osmd.EngravingRules.DYIsSingleLine = state.isSingleLine;
 			// 传入自定义的小节循环顺序
 			osmd.EngravingRules.DYCustomRepeatStr = state.extConfigJson.customRepeatStr?.trim()?.replace(/,/g, ',') || '';
+			if (state.combinePartIndexs.length > 1) {
+				(window as any).DYcombinePartIndexs = state.combinePartIndexs;
+			} else {
+				(window as any).DYcombinePartIndexs = null;
+			}
 			await osmd.load(musicData.score);
 			// 对外暴露 一行谱时候 缩小谱面
 			if(state.isSimplePage){