TIANYONG пре 1 година
родитељ
комит
f61dc66f80
2 измењених фајлова са 6 додато и 2 уклоњено
  1. 1 1
      osmd-extended
  2. 5 1
      src/state.ts

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 4a5ed1ea08671c9db6789080376ad4c67ef49695
+Subproject commit 8ed2031be680bf41c0651cda4b8f373f7bef6b76

+ 5 - 1
src/state.ts

@@ -1093,6 +1093,10 @@ const formateSelectMearure = (_list: any[]): any[] => {
     startItemINdex = state.sectionFirst ? state.sectionFirst.i : startItemINdex;
   }
   skipNotePlay(startItemINdex, startItemINdex === 0);
+  const currentItem: any = (state.sectionStatus && state.section.length === 2) ? state.sectionFirst || state.section[0] : state.times[state.activeNoteIndex];
+  if (currentItem.measureSpeed && query.workRecord === undefined) {
+    handleSetSpeed(currentItem.measureSpeed);
+  }
   return list;
 };
 
@@ -1163,7 +1167,7 @@ export const setSection = (start: number, end: number, userSpeed?: number) => {
     // 设置小节
     hanldeDirectSelection([startNote, endNote]);
 
-    //设置速度
+    // 评测作业,练习作业的场景,需要用老师布置的速度,设置播放速度
     if (userSpeed) {
       handleSetSpeed(userSpeed);
     }