Sfoglia il codice sorgente

妙极客的曲子选段评测beatLength修改

TIANYONG 1 mese fa
parent
commit
c6bb4eb409
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/page-instrument/evaluat-model/index.tsx

+ 4 - 0
src/page-instrument/evaluat-model/index.tsx

@@ -193,6 +193,10 @@ export default defineComponent({
           preTime = state.times[idx] ? state.times[idx].time * 1000 : 0;
         }
         actualBeatLength = startIndex == 0 && state.isOpenMetronome ? actualBeatLength : 0;
+        // 妙极客的曲子,选择的第一小节,beatLength需要传递fixtime
+        if (state.isEvxml && startIndex == 0) {
+          actualBeatLength = Math.round((state.times[0].fixtime * 1000) / 1);
+        }        
         selectTimes = state.times.filter((n: any, index: number) => {
           return index >= startIndex && index <= endIndex;
         });