Przeglądaj źródła

Merge branch 'feature-tianyong' into klx-test

TIANYONG 4 miesięcy temu
rodzic
commit
1aa0a0bf25

+ 1 - 1
src/helpers/formateMusic.ts

@@ -1413,7 +1413,7 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
 				isStaccato: note.voiceEntry.isStaccato(),
 				isRestFlag: note.isRestFlag,
 				// noteId: note.NoteToGraphicalNoteObjectId,
-				noteId: note.NoteToGraphicalNoteObjectId || `restNote${note.sourceMeasure.MeasureNumberXML}`,
+				noteId: note.NoteToGraphicalNoteObjectId === undefined ? `restNote${note.sourceMeasure.MeasureNumberXML}` : note.NoteToGraphicalNoteObjectId,
 				measureListIndex: note.sourceMeasure.measureListIndex,
 				MeasureNumberXML: note.sourceMeasure.MeasureNumberXML, // 当前的小节数,(从1开始)
 				_noteLength: _noteLength,

+ 3 - 1
src/helpers/midiPlay.tsx

@@ -97,11 +97,13 @@ export const cloudToggleState = async (type: "play" | "paused") => {
     if (state.isSelectMeasureMode) {
       audioData.progress = state.midiSectionStart
     }
+    console.log('midi速度',state.originSpeed,state.speed)
     await api_cloudPlay({
       songID: state.examSongId,
       startTime: audioData.progress * 1000,
       originalSpeed: state.originSpeed, // midi初始速度
-      speed: state.modeType === "evaluating" ? state.originSpeed : state.speed,
+      // speed: state.modeType === "evaluating" ? state.originSpeed : state.speed,
+      speed: state.speed,
       hertz: 440, //SettingState.sett.hertz,
     })
     // startCapture()

+ 2 - 0
src/page-instrument/custom-plugins/guide-driver/index.tsx

@@ -1337,6 +1337,8 @@ export const EvaluatingReportDriver = defineComponent({
             doneBtnText: "完成",
             showButtons: ["next", "previous"],
             onPopoverRender: (popover: PopoverDOM, options: { config: Config; state: State }) => {
+              options.config.stageRadius = 8;
+              options.config.stagePadding = 5;
               try {
                 const rect = options.state.activeElement?.getBoundingClientRect();
                 popover.wrapper.style.marginLeft = ((rect?.width || 0) / 2) * -1 + 4 + "px";

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

@@ -224,7 +224,8 @@ export default defineComponent({
       if (preTimes.length) {
         for (let index = preTimes.length-1; index >= 0; index--) {
           const item = preTimes[index]
-          const note = getNoteByMeasuresSlursStart(item)
+          // const note = getNoteByMeasuresSlursStart(item)
+          const note = item
           if (note.formatLyricsEntries.contains('Play') || note.formatLyricsEntries.contains('Play...')) {
             preLyricsContent = 'Play'
             break
@@ -238,7 +239,8 @@ export default defineComponent({
       }
       for (let index = 0; index < selectTimes.length; index++) {
         const item = selectTimes[index];
-        const note = getNoteByMeasuresSlursStart(item);
+        // const note = getNoteByMeasuresSlursStart(item);
+        const note = item
         // #8701 bug: 评测模式,是以曲谱本身的速度进行评测,所以rate取1,不需要转换
         // const rate = state.speed / state.originSpeed;
         const rate = state.basePlayRate * state.originAudioPlayRate; // 播放倍率

+ 1 - 1
src/view/selection/index.module.less

@@ -85,7 +85,7 @@
     position: absolute;
     right: 10px;
     top: -45px;
-    transform: translateX(-50%);   
+    // transform: translateX(-50%);   
     font-size: 16px;
     font-family: "Roboto", sans-serif;
     font-weight: bold;