|
@@ -194,6 +194,11 @@ export default defineComponent({
|
|
|
}
|
|
|
// 阶段评测beatLength需要加上预备小节的持续时长
|
|
|
actualBeatLength = preTimes.length ? actualBeatLength + preTimes[preTimes.length - 1].relaMeasureLength * 1000 : actualBeatLength;
|
|
|
+ // 如果是弱起,并且预备小节是第一节
|
|
|
+ if (state.section.length && state.sectionFirst && state.sectionFirst.measureListIndex == 0) {
|
|
|
+ actualBeatLength = actualBeatLength < Math.round((state.times[0].fixtime * 1000) / 1) ? Math.round((state.times[0].fixtime * 1000) / 1) : actualBeatLength;
|
|
|
+ }
|
|
|
+
|
|
|
let firstNoteTime = unitTestIdx > 1 ? preTime : 0;
|
|
|
let measureIndex = -1;
|
|
|
let recordMeasure = -1;
|
|
@@ -204,7 +209,8 @@ export default defineComponent({
|
|
|
// #8701 bug: 评测模式,是以曲谱本身的速度进行评测,所以rate取1,不需要转换
|
|
|
// const rate = state.speed / state.originSpeed;
|
|
|
const rate = state.basePlayRate * state.originAudioPlayRate; // 播放倍率
|
|
|
- const difftime = item.difftime;
|
|
|
+ // const difftime = item.difftime;
|
|
|
+ const difftime = 0;
|
|
|
const start = difftime + (item.sourceRelativeTime || item.relativeTime) - starTime;
|
|
|
const end = difftime + (item.sourceRelaEndtime || item.relaEndtime) - starTime;
|
|
|
const isStaccato = note.noteElement.voiceEntry.isStaccato();
|